Styleguide
Styleguide copied to clipboard
Site "stuck" in view only mode
Hello,
I've got a styleguide, and it's currently stuck in view only mode. The server however, is running.
I'm currently getting a 500 error with snippets/duplicates, and supposedly Error: ENOENT: no such file or directory, open 'db/categories.txt'. Despite these two errors, everything shows (except for the edit functions, the console states that it's showing view only).
config.txt
{
"projectName": "",
"projectUrl": "",
"projectLogo": "",
"jsResources": [],
"viewportWidths": [
320,
480,
768,
1024,
1200
],
"serverPort": 9900,
"snippetTemplate": "template.html",
"cssVariables": ["../scss/_variables.scss"],
"maxSassIterations": 2000,
"database": "db",
"categories": "db/categories.txt",
"uniques": "db/uniques.txt",
"sassData": "db/sassdata.txt",
"extension": ".txt"
}
gulpfile.js - I've removed the scss task and watch task as they shouldn't make a difference
var styleguide = require('devbridge-styleguide'),
liveServer = require('live-server');
gulp.task('start-styleguide', function () {
styleguide.startServer();
var params = {
port: 8080, // Set the server port. Defaults to 8080.
wait: 500, // Waits for all changes, before reloading. Defaults to 0 sec.
logLevel: 2, // 0 = errors only, 1 = some, 2 = lots
host: '0.0.0.0',
root: 'styleguide',
mount: [['/css', './css',], ['/statics', './statics',],],
};
liveServer.start(params);
});
gulp.task('default', ['sass', 'start-styleguide']);