Digital Ocean - Lab
apt-get update
apt-get install ruby-dev
apt-get install build-essential
apt-get install git
apt-get install postgresql
apt-get install postgresql-contrib
sudo -u postgres createuser -s $USER
createdb $USER
touch ~/.psql_history
apt-get install libpq-dev
gem install pg
gem install json -v 1.8.2
gem install bundler
HOW DO WE GET AN APP ON HERE?
- We need a Git repository!
- We also need a working database!
- Opening PSQL
- Copy / run migrations + hit enter
- Exit with \q
- Change into the directory
bundle
nohup bundle exec rackup -p 80 --host 0.0.0.0