Skip to content

Commit 8925a1a

Browse files
committed
fix(deploy): correct app path and nginx upstream
- Change deploy path from /home/core/apps/core to /home/core/core - Fix bundle install to use config syntax (--deployment flag removed in bundler 4) - Fix nginx upstream from localhost:3000 to Unix socket
1 parent c939a0b commit 8925a1a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
4242
echo "🚀 Starting deployment..."
4343
44-
cd /home/core/apps/core
44+
cd /home/core/core
4545
4646
# Initialize rbenv (add shims to PATH for bundle/rails commands)
4747
export PATH="/home/core/.rbenv/shims:/home/core/.rbenv/bin:$PATH"
@@ -62,7 +62,9 @@ jobs:
6262
6363
# Install dependencies
6464
echo "📦 Installing dependencies..."
65-
bundle install --deployment --without development test
65+
bundle config set deployment true
66+
bundle config set without "development test"
67+
bundle install
6668
6769
# Load environment variables
6870
export $(cat .env | grep -v '^#' | xargs)

scripts/setup-nginx.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ echo "🌐 Setting up Nginx..."
99
# Create Nginx config
1010
cat > /etc/nginx/sites-available/rectorspace.com << 'EOF'
1111
upstream puma_core {
12-
server localhost:3000 fail_timeout=0;
12+
server unix:///home/core/core/tmp/sockets/puma.sock fail_timeout=0;
1313
}
1414
1515
server {

0 commit comments

Comments
 (0)