Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

By JTronLabs
I have a rails application that works fine on my local machine when I run
rails server
However I am having trouble getting it working on DO. The exact commands I have run are as follow
#create droplet with ubuntu and 1-click rails application
#open up server's console via ssh or online console
rm -rf /home/rails/*
apt-get install git
cd /home/rails
git init
git remote add origin MY_GIT_REPO
git pull origin master
#must add swapfile for bundle install to work
fallocate -l 512M /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
#make swapfile permanent
nano /etc/fstab # add this line to bottom of file --> /swapfile none swap sw 0 0
#back to the rails stuff
bundle install
#switch from sqlite to mysql2, eventually (note I have not done this yet)
#need to add mysql2 to gemfile and edit config/database.yml using https://gist.github.com/erichurst/961978
bundle exec rake db:create db:schema:load db:seed
nano config/environments/production.rb # Set `config.assets.compile = true`
chown -R rails:www-data *
service unicorn restart
exec bundle rails s -d
After I run this it appears my IP is up and running (there’s no error shown), but my index page is not shown. Thanks for the help!
50ff4e4b3c6c4999a12403b1ecda95
Erina Jones
05c643336f3a4578a0b414e11ed8fc
792d8c6065294b4da466a26b2a99e4
Joseph Roberts
KFSys
abdullah527382
Karan M Janthe
Brendo Ross
wendoj
d40d179698b0e4b36f241171147902