Merge branch 'hotfix-deploy-script' into 'main'
hotfix: deploy script See merge request odweta/sourceworks.dev!5
This commit is contained in:
@@ -8,8 +8,9 @@ out=/var/www/html
|
|||||||
|
|
||||||
echo "[i] deploying website..."
|
echo "[i] deploying website..."
|
||||||
|
|
||||||
sudo rm -fr $out/** # nuke the previous state
|
sudo rm -fr $out/** # nuke the previous state
|
||||||
sudo cp -r ./static/* $out/ # copy the source files into the prod. env.
|
sudo cp -r ./static/* $out/ # copy the source files into the prod. env.
|
||||||
sudo chmod 444 $out/** # make the files read-only
|
sudo cp -r ./static/css/* $out/css/ # copy the stylesheets over
|
||||||
|
sudo chmod 444 $out/** # make the files read-only
|
||||||
|
|
||||||
echo "[i] website deployed successfully!"
|
echo "[i] website deployed successfully!"
|
||||||
Reference in New Issue
Block a user