Question

Trying to add my rails app to rails droplet

"Command ‘rails’ not found, but can be installed with:

apt install ruby-railties"

"Command ‘rake’ not found, but can be installed with:

snap install ruby # version 2.7.1, or apt install rake"

I am getting these errors when trying step 8 from below.

  1. make sure to create /home/index.html as your first/index page and point your route there before you push to git 2.install git apt-get install git 3.ssh to your digitalocean domain 4.navigate to cd /home/rails 5.delete folder “rails”
  2. clone your rails repo from github git clone YOUR_REMOTE_ADDRESS
  3. rename the downloaded repo to rails mv OLD_FOLDER NEW_FOLDER 8.setup your db rake db:drop db:create db:migrate 9.run rails server like so rails s --binding=YOUR_IP_ADDRESS
Subscribe
Share
  1. make sure to create /home/index.html as your first/index page and point your route there before you push to git
  2. install git apt-get install git
  3. ssh to your digitalocean domain
  4. navigate to cd /home/rails
  5. delete folder “rails”
  6. clone your rails repo from github git clone YOUR_REMOTE_ADDRESS
  7. rename the downloaded repo to rails mv OLD_FOLDER NEW_FOLDER
  8. setup your db rake db:drop db:create db:migrate
  9. run rails server like so rails s --binding=YOUR_IP_ADDRESS

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!