2022-08-07 12:15:02 +00:00
|
|
|
|
# Epic Post
|
|
|
|
|
|
|
|
|
|
A simple alternative to epic box.
|
|
|
|
|
|
|
|
|
|
### Install postgres
|
|
|
|
|
```
|
|
|
|
|
sudo apt install aptitude
|
|
|
|
|
sudo aptitude install postgresql postgresql-contrib
|
|
|
|
|
```
|
|
|
|
|
https://tecadmin.net/how-to-install-postgresql-in-ubuntu-20-04/
|
2022-08-08 14:17:03 +00:00
|
|
|
|
follow all the way through step 3.
|
2022-08-07 12:15:02 +00:00
|
|
|
|
|
|
|
|
|
### Web application
|
|
|
|
|
|
|
|
|
|
Download application and configure.
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
sudo apt install libjpeg-dev libpng-dev python3 redis-server postgresql-server-dev-*
|
|
|
|
|
sudo apt install python3-virtualenv
|
|
|
|
|
sudo apt install python3-venv
|
2022-08-08 14:17:03 +00:00
|
|
|
|
git clone https://git.cypherstack.com/marco/epicpost.git
|
2022-08-07 12:15:02 +00:00
|
|
|
|
cd epicpost
|
|
|
|
|
python3 -m venv yourvirtualenviornment
|
|
|
|
|
source yourvirtualenviornment/bin/activate
|
2022-08-08 14:17:03 +00:00
|
|
|
|
pip3 uninstall pillow
|
|
|
|
|
pip3 install wheel
|
|
|
|
|
pip3 install -r requirements.txt
|
|
|
|
|
CC="cc -mavx2" pip3 install -U --force-reinstall pillow-simd
|
2022-08-07 12:15:02 +00:00
|
|
|
|
cp settings.py_example settings.py
|
|
|
|
|
- change settings.py accordingly
|
|
|
|
|
```
|
|
|
|
|
eg change the psql_pass to your database password, psql_db to your database name
|
|
|
|
|
|
|
|
|
|
Run the application:
|
|
|
|
|
|
|
|
|
|
```bash
|
2022-08-08 14:17:03 +00:00
|
|
|
|
python3 run_dev.py
|
2022-08-07 12:15:02 +00:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Beware `run_dev.py` is meant as a development server.
|
|
|
|
|
|
|
|
|
|
When running behind nginx/apache, inject `X-Forwarded-For`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### License
|
|
|
|
|
|
|
|
|
|
© 2022 WTFPL – Do What the Fuck You Want to Public License
|