Skip to content

Instantly share code, notes, and snippets.

@nodox nodox/ch_0.sh
Last active Apr 30, 2017

Embed
What would you like to do?
# Start a new ubuntu box
$ vagrant init ubuntu/xenial64
$ vagrant up
# Login to ubuntu box
$ vagrant ssh
# install nvm
$ sudo apt-get update
$ wget -qO- https://raw.githubusercontent.com/xtuple/nvm/master/install.sh | sudo bash
$ exit
$ vagrant ssh
$ sudo nvm install 6.9
# Install git
$ sudo apt-get install git
# Clone application
$ cd ~
$ git clone <URL>
# Start web app
$ cd <NAME>
$ npm install
$ node bin/www
# Close web app
Press CTRL-D on your keyboard
# Install heroku tools
$ sudo apt-get install software-properties-common # debian only
$ sudo add-apt-repository "deb https://cli-assets.heroku.com/branches/stable/apt ./"
$ curl -L https://cli-assets.heroku.com/apt/release.key | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get install heroku
# Login and create new application
$ heroku login
$ heroku create myapp
#
$ echo "web: node bin/www" > Procfile
$ git add .
$ git commit -m "Heroku deployment setup complete"
$ git push origin master
$ git push heroku master
# End ubuntu box OS
$ vagrant destroy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.