-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* rename this file * refactor ruby tutorial to be a starter app.
- Loading branch information
Showing
7 changed files
with
145 additions
and
484 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
source/tutorials/tutorials-passenger-apps/deploy-to-production.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
Publish App | ||
----------- | ||
|
||
Publishing an app requires two steps: | ||
|
||
#. Updating the ``manifest.yml`` to specify the category and optionally subcategory, which indicates where in the dashboard menu the app appears. | ||
|
||
#. Having an administrator checkout a copy of the production version to a directory under ``/var/www/ood/apps/sys``. | ||
|
||
|
||
Steps: | ||
|
||
#. Add category to manifest so the app appears in the Files menu: | ||
|
||
.. code-block:: diff | ||
|
||
name: Quota | ||
description: Display quotas | ||
icon: fa://hdd-o | ||
+category: Files | ||
+subcategory: Utilities | ||
|
||
#. Version these changes. Click **Shell** button on app details view, and then ``commit`` the changes: | ||
|
||
.. code-block:: sh | ||
|
||
git add . | ||
git commit -m "update manifest for production" | ||
|
||
# if there is an external remote associated with this, push to that | ||
git push origin master | ||
|
||
#. As the admin, ``sudo copy`` or ``git clone`` this repo to production | ||
|
||
.. code-block:: sh | ||
|
||
# as sudo on OnDemand host: | ||
cd /var/www/ood/apps/sys | ||
git clone /users/PZS0562/efranz/ondemand/dev/quota | ||
|
||
|
||
#. **Reload** the dashboard. | ||
|
||
.. figure:: /images/app-dev-tutorial-ps-to-quota-published.png | ||
:align: center | ||
|
||
Every user can now launch the Quota from the Files menu. | ||
|
||
.. warning:: | ||
|
||
Accessing this new app for the first time will cause your NGINX server to restart, | ||
killing all websocket connections, which means resetting your active web-based OnDemand Shell sessions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.