Skip to content

Commit

Permalink
feat: add mercure into deploy api ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Leoglme committed Jan 22, 2024
1 parent a29528f commit c9ef142
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ MYSQL_HOST=host.docker.internal
MYSQL_PORT=3306
MYSQL_USER=adonis
MYSQL_PASSWORD=adonis
MYSQL_DB_NAME=irc
MYSQL_DATABASE=irc
MERCURE_URL=http://localhost:1405/.well-known/mercure
MERCURE_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJtZXJjdXJlIjp7InB1Ymxpc2giOlsiKiJdfX0.obDjwCgqtPuIvwBlTxUEmibbBf0zypKCNzNKP7Op2UM
SITE_NAME=Epitalk
10 changes: 10 additions & 0 deletions .github/workflows/deploy-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,16 @@ jobs:
else
echo "rsync is already installed."
fi
if ! command -v docker-compose &> /dev/null
then
echo "docker-compose could not be found, installing..."
sudo curl -L "https://github.com/docker/compose/releases/download/2.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
else
echo "docker-compose is already installed."
fi
echo "Starting deployment..."
SCRIPT_AFTER: |
cd ${{ env.APP_DIR }}/html
Expand Down
2 changes: 1 addition & 1 deletion config/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const databaseConfig: DatabaseConfig = {
port: Env.get('MYSQL_PORT'),
user: Env.get('MYSQL_USER'),
password: Env.get('MYSQL_PASSWORD', ''),
database: Env.get('MYSQL_DB_NAME'),
database: Env.get('MYSQL_DATABASE'),
},
migrations: {
naturalSort: true,
Expand Down

0 comments on commit c9ef142

Please sign in to comment.