From 75de0c0a80b695da356e8b35b262b761364a1316 Mon Sep 17 00:00:00 2001 From: Daniel Cortes Date: Wed, 3 Jun 2020 07:19:15 -0400 Subject: [PATCH] Corregido --- .gitlab-ci.yml | 2 +- deploy.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8286b51..03ef709 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -25,5 +25,5 @@ deploy: ## Sync the project to the deploy route - apt-get install rsync -y - rsync -rvz ./ deployer@142.93.158.54:/var/www/musiclist.danielcortes.xyz/server/ - - ssh deployer@142.93.158.54 'sh /var/www/musiclist.danielcortes.xyz/server/deploy.sh' + - ssh deployer@142.93.158.54 'cd /var/www/musiclist.danielcortes.xyz/server/; sh deploy.sh' diff --git a/deploy.sh b/deploy.sh index 391c32c..54043c5 100644 --- a/deploy.sh +++ b/deploy.sh @@ -1,3 +1,6 @@ +#!/usr/bin/env sh +set -eu + # If venv doesnt exists [ -d venv/ ] || python3 -m venv venv # Activate venv