Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Vladimir Zhukov
cyberlozhkin
Commits
ec684ceb
Commit
ec684ceb
authored
Jan 05, 2022
by
Vladimir Zhukov
Browse files
add static_root, add deploy script
parent
e5f4f91f
Pipeline
#1491
passed with stage
in 3 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
cyberlozhkin/cyberlozhkin/settings.py
View file @
ec684ceb
...
...
@@ -162,6 +162,9 @@ STATICFILES_DIRS = [
BASE_DIR
/
'static'
]
if
not
DEBUG
:
STATIC_ROOT
=
'/cyberlozhkin_static/'
# Default primary key field type
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
...
...
deploy.sh
0 → 100755
View file @
ec684ceb
#!/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment