I started a sails project (with sails new project --linker
) and everything was working correctly until today.
Now I get a 404 error with all of my javascripts, and I noticed that each time I launch the server ( sails lift
) the .tmp/public
folder is deleted. I didn't modified the gruntfile
or any core files and there are no errors displayed on the console.
the .tmp
folder is deleted every time you issue sails lift
. This is where sails stores its public dir for the http server.
If i remember correctly, v0.10
has linker enabled by default.
Try running sails new project
without the --linker
and see what shows up in assets/
there should be a linker folder.
If not, create the folder and add the appropriate tags to your ejs file.
You can see the docs for v0.10 here for more information specificy to a
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.