mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
add collect static command for rest/swagger ui
This commit is contained in:
parent
234638a85c
commit
46514d0897
6 changed files with 16 additions and 7 deletions
|
|
@ -260,9 +260,14 @@ install_webvirtcloud () {
|
|||
|
||||
echo "* Django Migrate."
|
||||
log "$PYTHON $APP_PATH/manage.py migrate"
|
||||
$PYTHON $APP_PATH/manage.py migrate
|
||||
$PYTHON $APP_PATH/manage.py makemigrations
|
||||
|
||||
$PYTHON $APP_PATH/manage.py migrate
|
||||
|
||||
|
||||
echo "* Django Collect Static"
|
||||
log "$PYTHON $APP_PATH/manage.py collectstatic --noinput"
|
||||
$PYTHON $APP_PATH/manage.py collectstatic --noinput
|
||||
|
||||
chown -R "$nginx_group":"$nginx_group" "$APP_PATH"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue