X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2887fa9c26cfd4ae6379e2cf4e6c5d50aaa0dd11..0779cb4c6b2768b42748077f212b472dfc24b055:/doc/admin/config-migration.html.textile.liquid?ds=sidebyside diff --git a/doc/admin/config-migration.html.textile.liquid b/doc/admin/config-migration.html.textile.liquid index 11546c0323..3f10a87feb 100644 --- a/doc/admin/config-migration.html.textile.liquid +++ b/doc/admin/config-migration.html.textile.liquid @@ -19,16 +19,37 @@ The legacy API server configuration is stored in @config/application.yml@ and @c Change to the API server directory and use the following commands:
-$ bundle exec rake config:migrate > config.yml
+$ RAILS_ENV=production bundle exec rake config:migrate > config.yml
 $ cp config.yml /etc/arvados/config.yml
 
-This will print the contents of @config.yml@ after merging with legacy @application.yml@. It may then be redirected to a file and copied to @/etc/arvados/config.yml@. +This will print the contents of @config.yml@ after merging the legacy @application.yml@ and @database.yml@ into the existing systemwide @config.yml@. It may be redirected to a file and copied to @/etc/arvados/config.yml@ (it is safe to copy over, all configuration items from the existing @/etc/arvados/config.yml@ will be included in the migrated output). If you wish to update @config.yml@ configuration by hand, or check that everything has been migrated, use @config:diff@ to print configuration items that differ between @application.yml@ and the system @config.yml@.
-$ bundle exec rake config:diff
+$ RAILS_ENV=production bundle exec rake config:diff
+
+ +This command will also report if no migrations are required. + +h2. Workbench + +The legacy workbench configuration is stored in @config/application.yml@. After migration to @/etc/arvados/config.yml@, this file should be moved out of the way and/or deleted. + +Change to the workbench server directory and use the following commands: + +
+$ RAILS_ENV=production bundle exec rake config:migrate > config.yml
+$ cp config.yml /etc/arvados/config.yml
+
+ +This will print the contents of @config.yml@ after merging the legacy @application.yml@ into the existing systemwide @config.yml@. It may be redirected to a file and copied to @/etc/arvados/config.yml@ (it is safe to copy over, all configuration items from the existing @/etc/arvados/config.yml@ will be included in the migrated output). + +If you wish to update @config.yml@ configuration by hand, or check that everything has been migrated, use @config:diff@ to print configuration items that differ between @application.yml@ and the system @config.yml@. + +
+$ RAILS_ENV=production bundle exec rake config:diff
 
This command will also report if no migrations are required. @@ -43,8 +64,8 @@ Currently only reads @RemoteClusters@ from centralized configuration. Still req h2. arvados-controller -Only supports centralized config file. No migration needed. +Already uses centralized config exclusively. No migration needed. h2. arvados-dispatch-cloud -Only supports centralized config file. No migration needed. +Already uses centralized config exclusively. No migration needed.