This commit is contained in:
@@ -37,7 +37,6 @@ jobs:
|
||||
echo "Folder created ✅"
|
||||
|
||||
echo "Copy migrations files 📑"
|
||||
ls
|
||||
scp -r -P ${{ secrets.SERVER_PORT }} ./migrations/* ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }}:/var/www/greenlight/migrations
|
||||
echo "Files copied ✅"
|
||||
|
||||
@@ -46,7 +45,7 @@ jobs:
|
||||
cd /var/www/greenlight
|
||||
|
||||
echo "Running migrations ⚙️"
|
||||
migrate -path=./migrations -database "$GREENLIGHT_DB_DSN" up
|
||||
migrate -path=./migrations -database=$GREENLIGHT_DB_DSN up
|
||||
echo "Migrations done ✅"
|
||||
|
||||
echo "Cleaning 🧹"
|
||||
|
||||
Reference in New Issue
Block a user