Lahmacun's archivator
Make sure you have Docker.
git clone
this repositorycd lahmacun_arcsi
Create following template files:
- config.template.py ->
config.py
- Replace line 5 with
SQLALCHEMY_DATABASE_URI = "postgresql://postgres:p0stgr3s@db/arcsi"
(lahmacunradio#7)
- Replace line 5 with
- app.env.template ->
app.env
- Set
FLASK_APP=run.py
- Set
- db.env.template ->
db.env
- srv.env.template ->
srv.env
Set DOMAIN=localhost
- nginx/http_arcsi.conf.template ->
nginx/arcsi.conf
Run docker-compose up -d
Note:
- You may need to comment out following line in
docker-compose.yml
:/etc/letsencrypt:/etc/letsencrypt
arcsi/__init__.py
may need special treatment: lahmacunradio#8- If an entry point fails to execute on Windows (the sh interpreter will tell you that the file doesn't exist, which is probably not true), check if there are Windows-style (CRLF) line endings and change them to Unix-style ones (LF).
- FOR DEVELOPERS: You may want to add the
--reload
option for Gunicorn on line for "on-the-fly" application of changes to Python files (you don't need to down and up docker for the changes to apply). Use it only during development!
Hit http://localhost in your browser