I am trying to deploy a rails app on AWS by referring to the following article.
https://qiita.com/naoki_mochizuki/items/5a1757d222806cbe0cd1
In the item "MySQL settings", I noticed that the DB was created with MySQL, and I am trying to recreate the database of the application.
I've tried the following methods, but I'm not sure where the problem is.
I'm sorry for the beginner's question, but could you please help me to deploy it safely?
Thank you.
$sudo service mysqld start
→ Redirecting to /bin/systemctl start mysqld.service
Failed to start mysqld.service: Unit not found.
Database.yml after trying to use mysql2 only for production environment referring to the article
default:&default
adapter: sqlite3
pool:<% = ENV.fetch ("RAILS_MAX_THREADS") {5}%>
timeout: 5000
development:
<<: * default
database: db/development.sqlite3
test: test:
<<: * default
database: db/test.sqlite3
production:
adapter: mysql2
encoding: utf8
pool:<% = ENV.fetch ("RAILS_MAX_THREADS") {5}%>
database: zimotoai_app_production
username: zimotoai_app
password: password:
What I tried
I checked if MariaDB was uninstalled and MySQL was installed by referring to the following article.
After that, I was wondering if the article would solve the problem, so I decided to ask a question.
https://qiita.com/miriwo/items/e7afd5e1ae0de94f27c2
https://qiita.com/Seungbaek_Seo/items/ccef367521d94ebd0ed3
Production environment database creation
[ec2-user @ ip-172-31-23-189
[ec2-user @ ip-172-31-23-189
A folder with the name of the number representing the date is displayed Example: 20200218063515
cd bottom number # =>Example cd 20200218063515
[ec2-user @ ip-172-31-23-189
=>Created database'
[ec2-user @ ip-172-31-23-189
-
Answer # 1
Related articles
- ruby on rails - after deploying, the database defalut setting is 0
- ruby on rails undefinde method doesn't work
- ruby on rails - about deploying apps using s3 function
- ruby - [rails] form_with doesn't have proper name attribute
- ruby - rails render flash doesn't work
- ruby on rails - i'm a beginner i'm deploying an app created with rails on heroku, but i can't proceed with an error
- [ruby on rails] about header setting using bootstrap
- ruby - "the page you were looking for doesn't exist" when deploying rails 6
- ruby on rails 5 - rspec controller test doesn't work
- ruby on rails - launching unicorn doesn't work
- ruby on rails 5 - time calculation doesn't work
- ruby on rails - i want to eliminate the error when deploying to heroku
- ruby on rails - rails doesn't work
- ruby on rails - action cable doesn't work on heroku
- ruby on rails 5 - the setup for everyday rails chapter 2 doesn't work (could not find shared context "project setup")
- ruby on rails - rails likes feature doesn't show up until you reload the page after clicking like
- ruby on rails - [jquery/aws] when deploying a rails application on aws, the slide show introduced by skipperjs is not displayed
- ruby on rails - in the development of docker + rails + puma + nginx, i want to check the puma log in real time (also for debuggi
- ruby - partial template is not displayed (rails)
- ruby - ssl_connect returned = 1 errno = 0 state = error: wrong version number
- html - how to proceed with learning and development for ec construction
- ruby - resolve rspec mysql foreignkey error
- javascript - i want to eliminate the full calender not being displayed when deploying on aws
- javascript - i want to eliminate error 404
- ruby - aws unicorn cannot start master failed to start, check stderr log for details error
- ruby - i want to update user information
- ruby - rails comment function display
- ruby - i'm having trouble solving the missing required keys: [: id] error
I was able to refer to the following article for starting mysql.
https://qiita.com/naota7118/items/69a73e26374e24bbc538
However, I couldn't execute rake db: create RAILS_ENV = production after that, so I asked a question.
I would appreciate it if you could answer. Thank you.