igorklopov / enclose

Compile your Node.js project into an executable
http://enclosejs.com
Other
936 stars 43 forks source link

EncloseJS and Express JS #115

Closed thiagoanselmo closed 8 years ago

thiagoanselmo commented 8 years ago

Hello, want to buy the full version, more first like to know if I can add the expression and / public and / views in binary?

When generating the torque it still needs the external files.

app.use (compression ());

app.set ('views', './views'); app.set ('view engine', 'Jade');

app.use (bodyParser.json ()); app.use (bodyParser.urlencoded ({extended: true}));

app.use (cookieParser ()); app.use (session ({secret: 'keyboard cat' cookie: {maxAge: 3600000}, resave: true, saveUninitialized: true}))

app.use (express.static ('./public')); <---------------- <------------

Error: CSS /public not binary

my conf.js

module.exports = {
assets: "./public/**/*",
scripts: "./views/**/*"
};

Congratulations for the work

igorklopov commented 8 years ago

app.use (express.static ('./public')); is likely relative to cwd. try app.use (express.static (__dirname + '/public'));

thiagoanselmo commented 8 years ago

Thank you, work :D with your tip . I am hoping provider to release card to have the paid version , it worth Congratulations for the work .