Skip to content

Commit

Permalink
CodeDeploy Test - Standalone build, pnpm
Browse files Browse the repository at this point in the history
CodeDeploy Test - Standalone build, pnpm
  • Loading branch information
jwo0o0 authored Nov 20, 2024
2 parents c0fd291 + 4432b23 commit 310a72c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,13 @@ jobs:
mkdir -p build/standalone/public
mkdir -p build/standalone/scripts
rsync -a .next/standalone/ build/standalone/
rsync -a .next/static/ build/standalone/.next/static/
rsync -a public/ build/standalone/public/
rsync -a --copy-links .next/standalone/ build/standalone/
rsync -a --copy-links .next/static/ build/standalone/.next/static/
rsync -a --copy-links public/ build/standalone/public/
cp scripts/* build/standalone/scripts/
cp appspec.yml build/standalone
cp .env build/standalone/
cp ecosystem.config.js build/standalone/
cd build
zip -qq -r ../nextjs-app-${{ github.sha }}.zip .
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion ecosystem.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = {
{
name: "sns_client", // ์•ฑ์˜ ์ด๋ฆ„
script: "server.js", // Next.js ์Šคํฌ๋ฆฝํŠธ ๊ฒฝ๋กœ
cwd: "/home/ubuntu/deploy/standalone", // standsalone ๋””๋ ‰ํ† ๋ฆฌ ๊ฒฝ๋กœ
cwd: "/home/ubuntu/deploy", // standsalone ๋””๋ ‰ํ† ๋ฆฌ ๊ฒฝ๋กœ
instances: "1", // ํด๋Ÿฌ์Šคํ„ฐ ๋ชจ๋“œ์—์„œ ์‹คํ–‰ํ•  ์ธ์Šคํ„ด์Šค ์ˆ˜ (CPU ์ฝ”์–ด ์ˆ˜๋งŒํผ)
autorestart: true, // ํ”„๋กœ์„ธ์Šค ์ž๋™ ์žฌ์‹œ์ž‘ ํ™œ์„ฑํ™”
watch: false, // ํŒŒ์ผ ๋ณ€๊ฒฝ ๊ฐ์ง€ ํ™œ์„ฑํ™” (๊ฐœ๋ฐœ ์ค‘์—๋งŒ ํ™œ์šฉ)
Expand Down

0 comments on commit 310a72c

Please sign in to comment.