Skip to content

Commit

Permalink
small fix to the deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
lugopi committed Mar 6, 2024
1 parent 3150784 commit 380bcdc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
22 changes: 11 additions & 11 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
LANG=fr

DOCKER_USER=lugopi
DOCKER_USER=user
DOCKER_USER_ID=1000
DOCKER_GRP_ID=1000

KODECUPID_DEBUG = false
KODECUPID_DEBUG=false

KODECUPID_BACKEND_HOST = api-kodecupid.k8s.ing.he-arc.ch
KODECUPID_BACKEND_PORT = 8000
KODECUPID_BACKEND_HOST=hostname
KODECUPID_BACKEND_PORT=8000

KODECUPID_FRONTEND_HOST = kodecupid.k8s.ing.he-arc.ch
KODECUPID_FRONTEND_PORT = 80
KODECUPID_FRONTEND_HOST=hostname
KODECUPID_FRONTEND_PORT=80

KODECUPID_DATABASE_NAME = kodecupid
KODECUPID_DATABASE_USER = kodecupid
KODECUPID_DATABASE_PASSWORD = password
KODECUPID_DATABASE_HOST = database
KODECUPID_DATABASE_PORT = 5432
KODECUPID_DATABASE_NAME=kodecupid
KODECUPID_DATABASE_USER=kodecupid
KODECUPID_DATABASE_PASSWORD=password
KODECUPID_DATABASE_HOST=database
KODECUPID_DATABASE_PORT=5432
7 changes: 6 additions & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
cd ${0%/*}
root=$(pwd)

git pull
export $(cat .env | xargs)

eval "$(ssh-agent -s)"
ssh-add "$1"

git pull origin main

cd backend
pipenv install --deploy
Expand Down

0 comments on commit 380bcdc

Please sign in to comment.