1
0
Fork 0
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:
catborise 2022-08-24 10:29:29 +03:00
parent 234638a85c
commit 46514d0897
6 changed files with 16 additions and 7 deletions

2
Vagrantfile vendored
View file

@ -42,7 +42,9 @@ Vagrant.configure(2) do |config|
sudo cp /srv/webvirtcloud/conf/nginx/webvirtcloud.conf /etc/nginx/conf.d
sudo cp /srv/webvirtcloud/webvirtcloud/settings.py.template /srv/webvirtcloud/webvirtcloud/settings.py
sudo sed "s/SECRET_KEY = ''/SECRET_KEY = '"`python3 /srv/webvirtcloud/conf/runit/secret_generator.py`"'/" -i /srv/webvirtcloud/webvirtcloud/settings.py
python3 /srv/webvirtcloud/manage.py makemigrations
python3 /srv/webvirtcloud/manage.py migrate
python3 /srv/webvirtcloud/manage.py collectstatic --noinput
sudo rm /etc/nginx/sites-enabled/default
sudo chown -R www-data:www-data /srv/webvirtcloud
sudo service nginx restart