blob: e259cc49d76f0a437482b4f372c90bbdc6fecbe6 (
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
|
# postmarketos.org
## Dev
### Python Requirements Setup
Install all requirements, preferably within a virtualenv:
```bash
$ python -m venv venv
$ source venv/bin/activate
(venv)$ pip install -r requirements.txt
```
### Update Wiki Content
```bash
$ git submodule update --init --recursive
$ git pull --recurse-submodules
```
### New Blog Content
```bash
$ cat >content/blog/2017-12-31-happy-new-year.md << EOF
> ---
> title: Happy New Year!
> ---
>
> This is a *markdown* **formatted** post.
> EOF
```
### Dev Server
```bash
(venv)$ FLASK_DEBUG=1 FLASK_APP=app.py flask run
```
### Build
```bash
(venv)$ python freeze.py
```
|