Skip to content

Commit

Permalink
Merge pull request #180 from portagenetwork/rename_seed_file
Browse files Browse the repository at this point in the history
modify database setting for sandbox server
  • Loading branch information
pengyin-shan authored Apr 11, 2022
2 parents 3844b41 + 143b24d commit 9bc2fc5
Show file tree
Hide file tree
Showing 6 changed files with 3,617 additions and 5,540 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [3.0.4+portage-3.0.9] - 2022-04-11

### Fixed

- Fixed sandbox setting based on the server configuration

## [3.0.4+portage-3.0.8] - 2022-04-08

### Fixed
Expand Down
10 changes: 6 additions & 4 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defaults: &defaults
adapter: mysql2
encoding: utf8mb4
pool: 16
database: <%= ENV["MYSQL_DATABASE"] %>
# database: <%= ENV["MYSQL_DATABASE"] %>
username: <%= ENV["MYSQL_USER"] %>
password: <%= ENV["MYSQL_PASSWORD"] %>
host: <%= ENV["DATABASE_URL"] || '127.0.0.1' %>
Expand All @@ -27,9 +27,11 @@ staging:
url: <%= Rails.application.secrets.database_url %>

sandbox:
<<: *defaults
database: <%= Rails.application.secrets.database_url %>

encoding: utf8mb4
url: <%= Rails.application.secrets.database_url %>
pool: 5
timeout: 5000

production:
<<: *defaults
url: <%= Rails.application.secrets.database_url %>
Loading

0 comments on commit 9bc2fc5

Please sign in to comment.