Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #188 from DHRI-Curriculum:kallewesterling/issue144
Browse files Browse the repository at this point in the history
Resolves #144
  • Loading branch information
kallewesterling authored Sep 8, 2020
2 parents f04d928 + d2f69fb commit 6050166
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Deadline: August 24, 2020
- [Run Server](_docs/run.md)
- [Setting up a new workshop](_docs/setup-workshop.md)
- [Changing Settings](_docs/settings.md)
- [Deployment on Reclaim](_docs/deploy-on-reclaim.md)

---

Expand Down
49 changes: 49 additions & 0 deletions _docs/deploy-on-reclaim.md
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
```

0 comments on commit 6050166

Please sign in to comment.