This repository has been archived by the owner on Feb 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #188 from DHRI-Curriculum:kallewesterling/issue144
Resolves #144
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# How to deploy on Reclaim Hosting | ||
|
||
## Setting up a Django app on Reclaim | ||
|
||
... | ||
|
||
## Updating the Django app on Reclaim | ||
|
||
### Step 1. Create a SSH connection | ||
|
||
```console | ||
$ ssh dhinstit@dhinstitutes.org | ||
``` | ||
|
||
### Step 2. Activate Virtual Environment | ||
|
||
```console | ||
$ source virtualenv/curriculum.dhinstitutes.org/3.7/bin/activate | ||
``` | ||
|
||
### Step 3. Navigate to Working Directory | ||
|
||
```console | ||
$ cd curriculum.dhinstitutes.org | ||
``` | ||
|
||
### Step 4. Pull from GitHub and Ensure Branch Tracking | ||
|
||
```console | ||
$ git pull | ||
``` | ||
|
||
If new/updated branches. For example (here `alpha-5`): | ||
|
||
```console | ||
$ git checkout --track origin/alpha-5 | ||
``` | ||
|
||
### Step 5. Collect Static Files | ||
|
||
```console | ||
$ python manage.py collectstatic | ||
``` | ||
|
||
### Step 6. Load data | ||
|
||
```console | ||
$ python manage.py setup --wipe --all | ||
``` |