I have a project my group has created in ruby on rails, I am responsible to uploading it to the AWS EC2 instance from github. I can get this application to work locally but when its on the instance I get an error with sql. We created a new project in the command line and did most work there so we did not personally create a database. I am new to ruby on rails and AWS so I am lost... Thanks in advance! I have attached photos of it working locally and it not working on the instance. nonworking on ubuntu server here it is working locally
Not sure what went wrong, but it looks like you sqlite3 is not connecting to the migration. From your ec2 instance (& in the root directory of your app), you can try to drop the db and migrate =>
bundle install
And then
rake db:drop && rake db:create && rake db:migrate
or
rake db:reset
You could also look up this tutorial: DEPLOYING RAILS APP TO EC2 INSTANCE VIA GITHUB
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.