Skip to content

Commit 3a0d44f

Browse files
committed
fixes
1 parent 7890872 commit 3a0d44f

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/deploy-staging.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
with:
2424
node-version: ${{ env.NODE_VERSION }}
2525
cache: "npm"
26+
cache-dependency-path: |
27+
server/package-lock.json
28+
client/package-lock.json
2629
2730
- name: Install server dependencies
2831
run: |
@@ -49,7 +52,7 @@ jobs:
4952
5053
# Deploy using git pull and rebuild
5154
ssh -i ~/.ssh/lightsail_key -o StrictHostKeyChecking=no \
52-
bitnami@${{ env.LIGHTSAIL_HOST }} << 'ENDSSH'
55+
bitnami@${{ vars.LIGHTSAIL_HOST }} << 'ENDSSH'
5356
5457
set -e # Exit on any error
5558
@@ -66,7 +69,7 @@ jobs:
6669
# Install server dependencies
6770
echo "📦 Installing server dependencies..."
6871
cd server
69-
npm ci --production
72+
npm ci
7073
7174
# Build client
7275
echo "🏗️ Building client..."
@@ -76,7 +79,6 @@ jobs:
7679
7780
# Start the service
7881
echo "▶️ Starting nodejs service..."
79-
cd ~/bolt-gameserver-sample/server
8082
sudo systemctl start nodejs.service
8183
8284
# Wait and check if service is running
@@ -90,7 +92,7 @@ jobs:
9092
cd ~/bolt-gameserver-sample
9193
git checkout -- .
9294
cd server
93-
npm ci --production
95+
npm ci
9496
cd ../client
9597
npm ci
9698
npm run build:staging
@@ -116,8 +118,8 @@ jobs:
116118
117119
# Check multiple endpoints
118120
HEALTH_ENDPOINTS=(
119-
"http://${{ env.LIGHTSAIL_HOST }}/api/health"
120-
"https://${{ env.LIGHTSAIL_HOST }}/api/health"
121+
"http://${{ vars.LIGHTSAIL_HOST }}/api/health"
122+
"https://${{ vars.LIGHTSAIL_HOST }}/api/health"
121123
)
122124
123125
SUCCESS=false

client/src/routes/home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function Home() {
1111
return (
1212
<div className="index-page" style={{ "--home-bg": `url(${CastleScene})` }}>
1313
<div className="app-header">
14-
<h1>⚔️ Bolt Demo Store ⚔️</h1>
14+
<h1>⚔️ Bolt Demo Storez ⚔️</h1>
1515
<p>Store to showcase Bolt Charge SDK</p>
1616
</div>
1717

0 commit comments

Comments
 (0)