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.
- 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”
- clone your rails repo from github git clone YOURREMOTEADDRESS
- 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
-
GiancarloZ August 8, 2020Reply Report
- make sure to create /home/index.html as your first/index page and point your route there before you push to git
- install git apt-get install git
- ssh to your digitalocean domain
- navigate to cd /home/rails
- delete folder “rails”
- clone your rails repo from github git clone YOURREMOTEADDRESS
- rename the downloaded repo to rails mv OLDFOLDER NEWFOLDER
- setup your db rake db:drop db:create db:migrate
- run rails server like so rails s –binding=YOURIPADDRESS