| ... | ... | @@ -13,19 +13,19 @@ Before, we used a CLI that provided the actions below. For AweSim on Open OnDema |
|
|
|
|
|
|
|
|
|
|
|
#### Setup
|
|
|
|
1. Clone an existing app to ~/awesim/share/appdir (via terminal or web ui)
|
|
|
|
2. Create and version a .env.production (follow pattern in Rails Application Template or this file: https://github.com/AweSim-OSC/containerfillsim/blob/22e3cbd2163ee2cf0f11266020a461d602eb3320/.env.production)
|
|
|
|
1. Clone an existing app to `~/awesim/share/<appdir>` (via terminal or dashboard web ui)
|
|
|
|
2. Create and version a `.env.production` (follow pattern in Rails Application Template or this file: https://github.com/AweSim-OSC/containerfillsim/blob/22e3cbd2163ee2cf0f11266020a461d602eb3320/.env.production)
|
|
|
|
1. replace the secret with a unique string generated via the rake task (bin/rake secret)
|
|
|
|
3. Copy https://github.com/AweSim-OSC/rails-application-template/blob/8513c9b6ba9216fc7fe495d144d5162b996109eb/assets/setup-production to bin/setup-production and chmod 755 the file
|
|
|
|
3. Copy https://github.com/AweSim-OSC/rails-application-template/blob/8513c9b6ba9216fc7fe495d144d5162b996109eb/assets/setup-production to `bin/setup-production` and chmod 755 the file
|
|
|
|
4. Run the update commands below
|
|
|
|
|
|
|
|
* TODO: does the web ui guide you through this process?
|
|
|
|
|
|
|
|
#### Update
|
|
|
|
|
|
|
|
- bundle install
|
|
|
|
- build assets
|
|
|
|
- touch tmp/restart.txt
|
|
|
|
- bundle install gems: i.e. `RAILS_ENV=production bin/bundle install --path vendor/bundle`
|
|
|
|
- rebuild assets
|
|
|
|
- restart app i.e. `scl enable git19 rh-ruby22 -- bin/rake ood_appkit:restart`
|
|
|
|
|
|
|
|
You can do this through the web interface:
|
|
|
|
|
| ... | ... | @@ -34,3 +34,4 @@ You can do this through the web interface: |
|
|
|
Or you can do this via the command line by running this bash script:
|
|
|
|
|
|
|
|
* TODO
|
|
|
|
|