Question

Trying to add my rails app to rails droplet

Posted August 8, 2020 116 views
Ruby on Rails

“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 YOURREMOTEADDRESS
  3. rename the downloaded repo to rails mv OLDFOLDER NEWFOLDER 8.setup your db rake db:drop db:create db:migrate 9.run rails server like so rails s –binding=YOURIPADDRESS
1 comment
    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 YOURREMOTEADDRESS
    7. rename the downloaded repo to rails mv OLDFOLDER NEWFOLDER
    8. setup your db rake db:drop db:create db:migrate
    9. run rails server like so rails s –binding=YOURIPADDRESS
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!