Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sails js 9.4 - assets not being copied

Tags:

sails.js

First sails didn't create .tmp/public, so i did it manually. But it also doesn't copy stuff from my assets folder to my public folder. Can someone explain why that is?

#

At that time, the answers i got weren't helping, I've updated to 9.8 now, and i don't seem to have any problem.

#

like image 602
Lorenz V. Avatar asked Dec 02 '22 17:12

Lorenz V.


1 Answers

I had this same issue. When running sails lift the .tmp folder wasn't created. What finally worked for me was installing Grunt locally in the root folder of my sails app. So just run npm install grunt in your sails app folder. Having Grunt installed globally with the -g flag was apparently not enough. After the local installation, you can run sails lift again, and the .tmp folder will be created.
Hope this helps!

like image 122
Maarten Docter Avatar answered Dec 29 '22 04:12

Maarten Docter