2018-05-18 13:41:41 -05:00
|
|
|
css:
|
|
|
|
python -c "import sass; sass.compile(dirname=('sass', 'static/css'), output_style='compressed')"
|
|
|
|
|
|
|
|
password:
|
|
|
|
python -c "import bcrypt; from getpass import getpass; print(bcrypt.hashpw(getpass().encode('utf-8'), bcrypt.gensalt()).decode('utf-8'))"
|
2018-05-22 17:41:37 -05:00
|
|
|
|
2018-06-01 13:29:44 -05:00
|
|
|
docker:
|
|
|
|
mypy . --ignore-missing-imports
|
|
|
|
docker build . -t microblogpub:latest
|
|
|
|
|
|
|
|
reload-fed:
|
|
|
|
docker-compose -p instance2 -f docker-compose-tests.yml stop
|
|
|
|
docker-compose -p instance1 -f docker-compose-tests.yml stop
|
|
|
|
WEB_PORT=5006 CONFIG_DIR=./tests/fixtures/instance1/config docker-compose -p instance1 -f docker-compose-tests.yml up -d --force-recreate --build
|
|
|
|
WEB_PORT=5007 CONFIG_DIR=./tests/fixtures/instance2/config docker-compose -p instance2 -f docker-compose-tests.yml up -d --force-recreate --build
|
|
|
|
|
2018-05-22 17:41:37 -05:00
|
|
|
update:
|
|
|
|
docker-compose stop
|
|
|
|
git pull
|
2018-06-01 13:29:44 -05:00
|
|
|
docker build . -t microblogpub:latest
|
2018-05-22 17:41:37 -05:00
|
|
|
docker-compose up -d --force-recreate --build
|