Commit ec684ceb authored by Vladimir Zhukov's avatar Vladimir Zhukov
Browse files

add static_root, add deploy script

parent e5f4f91f
Pipeline #1491 passed with stage
in 3 seconds
......@@ -162,6 +162,9 @@ STATICFILES_DIRS = [
BASE_DIR / 'static'
if not DEBUG:
STATIC_ROOT = '/cyberlozhkin_static/'
# Default primary key field type
poetry install
poetry run ./cyberlozhkin/ migrate
poetry run ./cyberlozhkin/ collectstatic -c --noinput
poetry run ./cyberlozhkin/ check --deploy
sudo systemctl restart cyberlozhkin.service
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment