Skip to content

Commit

Permalink
Fix some deployment configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
fdendorfer committed Jun 9, 2024
1 parent 5a2f694 commit fae8f40
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
API_URI: ${{ secrets.API_URI }}
HOME_PORT: ${{ secrets.HOME_PORT }}
API_PORT: ${{ secrets.API_PORT }}
NITRO_PORT: ${{ secrets.HOME_PORT }}
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
Expand All @@ -23,7 +24,7 @@ jobs:
with:
node-version: 20
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm install --frozen-lockfile --dev --prod
- run: pnpm build
- run: pm2 delete svbot-web || true
- run: pm2 start npm --name "svbot-web" -- start
2 changes: 1 addition & 1 deletion nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default defineNuxtConfig({
runtimeConfig: {
public: {
HOME_URI: process.env.HOME_URI || 'http://localhost:4001',
API_URI: process.env.API_URL || 'http://localhost:4002',
API_URI: process.env.API_URI || 'http://localhost:4002',
},
},
server: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dev:client": "nuxt dev",
"dev:server": "npx nodemon api.js",
"build": "nuxt build",
"start": "npx concurrently \"node ./.output/server/index.mjs\" \"node api.js\"",
"start": "npx concurrently \"node --env-file=.env ./.output/server/index.mjs\" \"node api.js\"",
"generate": "nuxt generate",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
Expand Down

0 comments on commit fae8f40

Please sign in to comment.