Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev environment #2

Open
Nemikolh opened this issue Nov 27, 2015 · 0 comments
Open

Dev environment #2

Nemikolh opened this issue Nov 27, 2015 · 0 comments

Comments

@Nemikolh
Copy link
Contributor

We are currently using vagrant to control the dev environment. The work-flow is roughly:

vagrant up
vagrant ssh
# In the vagrant shell:
cd /vagrant
export NODE_ENV='development' && npm run build-server && npm run server

which is not exactly sexy and easy.

Besides, when developing we manually recompile and restart the dev server and we often end-up starting other services like mongo-express or node-inspector.

All this could be simplified a lot. Compare it to the client work-flow which is:

npm start # only once...

If someone is motivated, a good step could be to have the server automatically started after:

vagrant up # Run mongo-express, build the server and start it

Bonus: Offer an option to have a watch mode like in the client where the server is automatically rebuild and restarted when a server file change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant