-
Notifications
You must be signed in to change notification settings - Fork 1
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
3.1.0 Migration Deployment Documentation #281
Comments
updated some content on Jan 25.@nmacgreg I have tested the data migration process on UAT. Here are steps on your side that I think would be necessary to perform. Please let me know if you need any more information. I have a separate worksheet to record every step I did on UAT(issues.xlsx) ,and I retrieve the key steps for you: Steps
1.b. In addition, temporarily grant the userid the ability to create new databases:
References
And this is the secret setting (just change environmental variable name to lower case): defaults: &defaults
adapter: <%= ENV["DATABASE_ADAPTER"] || Rails.application.secrets.database_adapter %>
encoding: <%= ENV["DATABASE_ENCODING"] || Rails.application.secrets.database_encoding %>
pool: 16
username: <%= ENV["DATABASE_USER"] || Rails.application.secrets.database_user %>
password: <%= ENV["DATABASE_PASSWORD"] || Rails.application.secrets.database_password %>
host: <%= ENV["DATABASE_URL"] || '127.0.0.1' %>
development:
<<: *defaults
url: <%= Rails.application.secrets.database_url %>
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
<<: *defaults
url: <%= Rails.application.secrets.database_test_url %>
uat:
<<: *defaults
url: <%= Rails.application.secrets.database_url %>
staging:
<<: *defaults
url: <%= Rails.application.secrets.database_url %>
sandbox:
encoding: utf8mb4
url: <%= Rails.application.secrets.database_url %>
pool: 5
timeout: 5000
production:
<<: *defaults
url: <%= Rails.application.secrets.database_url %>
@nmacgreg please let me know if you want any Zoom calls or documents for more detail. On UAT it took me >= 5 hours to finish. It is ok that we do a trial run before the deployment day on staging only to get a better estimation? We prefer to do the formal deployment at the end of Jan. |
Have gone through the data migration process with Neil on staging, so I'm going to close this ticket for now. As a note for future, the steps ON UAT to comprehensively delete and recreate MariaDb, load data, transfer data, create PostgreSQL then load data to PostgreSQL is at the first tab of excel: Excel File for Migration |
Pre-steps:
issues.xlsx
This ticket is created to record the deployment process and issues.
Dockerfile.Production
report js or db error. Need to dorake assets:precompile
separately inside docker #282The text was updated successfully, but these errors were encountered: