You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will eventually get to trailpack-core (line 46)
// create paths if they don't existreturnPromise.all(Object.keys(paths).map(pathName=>{constdir=paths[pathName]try{conststats=fs.statSync(dir)if(!stats.isDirectory()){this.log.error('The path "',pathName,'" is not a directory.')this.log.error('config.main.paths should only contain paths to directories')returnPromise.reject()}}catch(e){fs.mkdirSync(dir)}}))}
And dir will be the object, not the string. Thus, an error will be thrown killing the server.
The text was updated successfully, but these errors were encountered:
@crash83k I just miss an update sorry :) so yes this will work but new version of trailpack-core witch this functionality is not on npm yet for for now, so it's not working but you can use what I say on previous comment.
cc @konstantinzolotarev
I'm attempting to use multiple static directories. You can use the example shown in the documentation, it will fail.
It attempts to make the DIR but doesn't check if it's an object, instead expects a string.
This will work.
www: path.resolve(__dirname, '..', 'static')
This will not.
This will eventually get to
trailpack-core
(line 46)And
dir
will be the object, not the string. Thus, an error will be thrown killing the server.The text was updated successfully, but these errors were encountered: