File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -14,4 +14,4 @@ cd activerecord || { echo "activerecord directory doesn't exist"; exit; }
14
14
bundle exec rake db:postgresql:rebuild
15
15
16
16
# Create MySQL databases
17
- MYSQL_CODESPACES=1 bundle exec rake db:mysql:rebuild
17
+ bundle exec rake db:mysql:rebuild
Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ services:
16
16
- redis
17
17
- memcached
18
18
19
+ environment :
20
+ MYSQL_CODESPACES : " 1"
21
+
19
22
# Use "forwardPorts" in **devcontainer.json** to forward an app port locally.
20
23
# (Adding the "ports" property to this file will not forward from a Codespace.)
21
24
Original file line number Diff line number Diff line change @@ -539,6 +539,9 @@ def use_mysql2(multi_db: false)
539
539
adapter: mysql2
540
540
pool: 5
541
541
username: root
542
+ <% if ENV['MYSQL_CODESPACES'] %>
543
+ password: 'root'
544
+ <% end %>
542
545
<% if ENV['MYSQL_HOST'] %>
543
546
host: <%= ENV['MYSQL_HOST'] %>
544
547
<% end %>
@@ -562,6 +565,9 @@ def use_mysql2(multi_db: false)
562
565
adapter: mysql2
563
566
pool: 5
564
567
username: root
568
+ <% if ENV['MYSQL_CODESPACES'] %>
569
+ password: 'root'
570
+ <% end %>
565
571
<% if ENV['MYSQL_HOST'] %>
566
572
host: <%= ENV['MYSQL_HOST'] %>
567
573
<% end %>
You can’t perform that action at this time.
0 commit comments