| ... | ... | @@ -23,9 +23,7 @@ Before, we used a CLI that provided the actions below. For AweSim on Open OnDema |
|
|
|
|
|
|
|
#### Update
|
|
|
|
|
|
|
|
- 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`
|
|
|
|
Run after changing shared app.
|
|
|
|
|
|
|
|
You can do this through the web interface:
|
|
|
|
|
| ... | ... | @@ -33,5 +31,18 @@ You can do this through the web interface: |
|
|
|
|
|
|
|
Or you can do this via the command line by running this bash script:
|
|
|
|
|
|
|
|
* TODO
|
|
|
|
* `~wiag/bin/update-app`
|
|
|
|
|
|
|
|
```
|
|
|
|
efranz@webtest04:~$ cat ~wiag/bin/update-app
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# run this script in the root of an app after pulling the latest code
|
|
|
|
|
|
|
|
grep RAILS_RELATIVE_URL_ROOT .env.production || { echo "RAILS_RELATIVE_URL_ROOT is not set in .env.production"; exit 1; }
|
|
|
|
|
|
|
|
scl enable git19 rh-ruby22 nodejs010 -- bin/bundle install --path=vendor/bundle
|
|
|
|
scl enable git19 rh-ruby22 nodejs010 -- bin/rake assets:clobber RAILS_ENV=production
|
|
|
|
scl enable git19 rh-ruby22 nodejs010 -- bin/rake assets:precompile RAILS_ENV=production
|
|
|
|
scl enable git19 rh-ruby22 nodejs010 -- bin/rake ood_appkit:restart
|
|
|
|
``` |