Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#36 #39

Merged
merged 4 commits into from
Aug 16, 2020
Merged

#36 #39

merged 4 commits into from
Aug 16, 2020

Conversation

yukihiko-shinoda
Copy link
Contributor

  • Set MySQL user app
  • Replace password
  • Create database for development in db service
  • Set RAILS_ENV development

Set MySQL user app

次のエラーを回避するため

db_1   | 2020-08-16 04:09:17+00:00 [Note] [Entrypoint]: Creating user root
db_1   | ERROR 1396 (HY000) at line 1: Operation CREATE USER failed for 'root'@'%'
my_app_db_1 exited with code 1

Replace password

次のエラーを回避するため

Access denied for user 'app'@'172.25.0.3' (using password: YES)

Create database for development in db service

次のエラーを回避するため

Access denied for user 'app'@'%' to database 'my_app_development'

Set RAILS_ENV development

環境変数 RAILS_ENV を指定しないと rspec が環境: test として動作するため

To avoid error when start MySQL container
To connect to database as non root user.
To run rspec as development.
@harluz harluz merged commit d864baf into harluz:#36 Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants