Skip to content

boiler plate repository for installing a default node.js server, nginx with vagrant

Notifications You must be signed in to change notification settings

vacenz/vagrant-node-nginx-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vagrant node nginx boilerplate

boiler plate repository for installing a default node.js server, nginx with vagrant

###set up vagrant up

###run jump into your vm, then run the node server

vagrant ssh
cd /var/www/nodeapp
node server.js`

###notes if you just want to use localhost 127.0.0.1

  • comment out config.vm.network "private_network ..." line in your Vagrantfile,
  • change the private ip to 127.0.0.1 in your default nginx file, and server.js file

the default file will be copied to /etc/nginx/sites-available/default to overwrite the initial nginx default file

the server.js runs in your /var/www/nodeapp folder which is synced up to your host as a shared folder.

###links

digital ocean node ubuntu guide

nodejs and nginx stack overflow

License

MIT

About

boiler plate repository for installing a default node.js server, nginx with vagrant

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published