This commit is contained in:
@@ -25,17 +25,17 @@ jobs:
|
||||
- name: Deploy to server
|
||||
run: |
|
||||
# Dossier de déploiement
|
||||
DEPLOY_PATH=/var/www/greenlight-api
|
||||
DEPLOY_PATH=/var/www/greenlight
|
||||
|
||||
# Crée le dossier s'il n'existe pas
|
||||
sudo mkdir -p $DEPLOY_PATH
|
||||
|
||||
# Copie le binaire et éventuellement les assets
|
||||
sudo cp ./bin/greenlight-api $DEPLOY_PATH/greenlight
|
||||
sudo cp ./bin/greenlight-api $DEPLOY_PATH/greenlight-api
|
||||
|
||||
# Donne les bons droits
|
||||
sudo chown -R www-data:www-data $DEPLOY_PATH
|
||||
sudo chmod +x $DEPLOY_PATH/greenlight
|
||||
sudo chmod +x $DEPLOY_PATH/greenlight-api
|
||||
|
||||
# Redémarre le service systemd
|
||||
sudo systemctl restart greenlight-api.service
|
||||
Reference in New Issue
Block a user