Skip to content

dab/bemup-workshop-vagrant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bemup-workshop-vagrant

на русском

Provisions a clean Ubuntu 12.04 32-bit server instance with all needed Node.js development tools (Node.js, git, vim);

Install Vagrant & VirtualBox

Install Vagrant:

http://vagrantup.com

Install VirtualBox:

https://www.virtualbox.org/wiki/Downloads

Setup

git clone git@github.com:dab/bemup-workshop-vagrant.git
cd bemup-workshop-vagrant
vagrant up
vagrant ssh

Done!

Post-Setup

Vagrant user

By default the vagrant user is configured with password 'vagrant'. The vagrant user is also configured for password-less sudo.

Edit code on host machine, build in VM

Your ~/ home directory on your host machine is synced to the /host/ directory inside of Vagrant. So for example you can edit code in ~/code/ on your laptop and build it inside a Vagrant shell inside /host/code.

Networking:

Configured for private network on static IP: 192.168.33.10, with port :3000 forwarded.

So from a web browser you have two ways of accessing a node.js process for example running on port 3000 on the VM:

  • 192.168.33.10:3000

Additionally for convenience, append this line to your /etc/hosts file:

192.168.33.10 bemup-vagrant.localhost

GitHub

ssh-keygen -t rsa
(Copy the contents of ~/.ssh/id_rsa.pub into your GitHub account: https://github.com/settings/ssh)
git config --global user.name '<your name>'
git config --global user.email <your email>

License

MIT

About

Vagrant config for building Ubuntu with node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published