Skip to content

Commit

Permalink
modify database setting
Browse files Browse the repository at this point in the history
  • Loading branch information
pengyin-shan committed Apr 11, 2022
1 parent 8da89d8 commit ed24537
Show file tree
Hide file tree
Showing 6 changed files with 3,630 additions and 5,547 deletions.
26 changes: 19 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,32 @@
# 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

- Fixed invalid org selection when new user accept invitation [#177](https://github.com/portagenetwork/roadmap/issues/177)
## [3.0.4+portage-3.0.7] - 2022-04-05

### Added

- Added feature flag for sandbox testing [#159](https://github.com/portagenetwork/roadmap/issues/159)
- Adjust seed files for different environment and prepare seed files for sandbox testing

### Changed
### Fixed

- Adjust seed files for different environment and prepare seed files for sandbox testing
- Change plan identifier field and add it to export [#158](https://github.com/portagenetwork/roadmap/issues/158)
- Change contact email to support@portagenetwork.ca [#172](https://github.com/portagenetwork/roadmap/issues/172)

## [3.0.4+portage-3.0.6] - 2022-03-23

### Fixed
### Fixed
- Usage statistics page now shows correct data [#164](https://github.com/portagenetwork/roadmap/issues/164)
- Change plan identifier field and add it to export [#158](https://github.com/portagenetwork/roadmap/issues/158)
- Change contact email to support@portagenetwork.ca [#172](https://github.com/portagenetwork/roadmap/issues/172)

## [3.0.4+portage-3.0.5] - 2022-03-07

Expand Down Expand Up @@ -267,5 +280,4 @@
- Fix 500 error when downloading usage statistics
- Fix name of downloaded usage file
- Allow organizational admin to see the download button in 'Statisctics on Users' and 'Statistics on Tempalte' accordions
- Upgrade node-sass to 7, node to 12 and adjust eslint test to use Github default action

- Upgrade node-sass to 7, node to 12 and adjust eslint test to use Github default action
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 ed24537

Please sign in to comment.