blob: eba61cc5648bbcf8f6e2b2dd9e47697ee478da5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# armory-fmf-cms
## Hansel and Gretel Website
The Hansel and Gretel Website is a port of the FMF iPad app, minus the face detection features. It uses react-native-web.
This codebase is a fork of the iPad app, with many alterations to make the app work in multiple web environments (desktop, mobile).
### Initial setup
The CMS code relies on a private repository. Please contact Jules for access.
```
npm install
cd client
npm install
```
### Run the CMS
Create an `.env` file with the following variables:
```
S3_KEY=
S3_SECRET=
S3_BUCKET=
S3_DIRNAME=
OK_USER=
OK_PASS=
OK_PRODUCTION=false
MAILGUN_API_KEY=
MAILGUN_DOMAIN=
MAIL_SECRET=
PORT=8100
WEBHOOK_SECRET=awwSTUDIO
```
Then run the CMS:
```
npm index
```
This will start the CMS running on the port specified, e.g. http://localhost:8100/
### Building the client
Build the client locally and push that up to Digital Ocean.
```
cd client
./fetch-db.sh
npm web:build
git push
```
### Deploy the changes
```
ssh ja@armory
cd armory-fmf-cms
git pull
pm2 restart cms
```
|