Question
MEAN + yeoman angular-fullstack generator
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×Hi Kamal,
I installed the MEAN image, did the initial server set up and then in my home directory I do the angular-fullstack generator. I do npm install, bower install and then when I do grunt I get “ERROR [launcher]: PhantomJS failed”.
Any ideas how to solve?
Cheers,
Mike
For my purposes I didn’t use
build dist
because there was some confusion retrieving assets and such so I just stuck to development and kept things in theclient
folderFrom there:
Use the FTP client of your choice to upload your angular-fullstack folder to
/opt
In the terminal of your choice run:
ssh root@your-digital-ocean-ip-address
cd
into/opt/name-of-your-fullstack-project-folder
Then run
node server/app.js
This will start up your server in development on port 9000.
To keep the server running:
Run these commands in order
In
server/config/production.js
changeport
from8080
to80
npm install forever -g
export NODE_ENV='production'
cd
back into/opt/name-of-your-fullstack-project-folder
forever start server/app.js
You may already know many of these steps but I detailed it pretty much step by step to avoid any confusion, hope it helps!