Styleguide icon indicating copy to clipboard operation
Styleguide copied to clipboard

Site "stuck" in view only mode

Open nothingrandom opened this issue 8 years ago • 0 comments

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']);

nothingrandom avatar Oct 17 '17 12:10 nothingrandom