Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
awesim-documentation
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gateways
awesim-documentation
Wiki
Sharing apps in OOD
Changes
Page history
New page
Templates
Clone repository
Updated Sharing apps in OOD (markdown)
authored
8 years ago
by
Eric Franz
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Sharing-apps-in-OOD.md
+15
-4
15 additions, 4 deletions
Sharing-apps-in-OOD.md
with
15 additions
and
4 deletions
Sharing-apps-in-OOD.md
View page @
959bca7f
...
...
@@ -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
```
This diff is collapsed.
Click to expand it.