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 = [ ...@@ -162,6 +162,9 @@ STATICFILES_DIRS = [
BASE_DIR / 'static' BASE_DIR / 'static'
] ]
if not DEBUG:
STATIC_ROOT = '/cyberlozhkin_static/'
# Default primary key field type # Default primary key field type
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field # https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
......
#!/bin/bash
poetry install
poetry run ./cyberlozhkin/manage.py migrate
poetry run ./cyberlozhkin/manage.py collectstatic -c --noinput
poetry run ./cyberlozhkin/manage.py 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