Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- main
- develop
- dev

jobs:
build:
Expand Down
18 changes: 18 additions & 0 deletions apps/editor/scripts/after_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,22 @@ export PATH="$NVM_BIN_PATH:$PATH"

cd /home/ubuntu/application || exit 1

# 🚨 [디버깅] 현재 폴더에 뭐가 있는지 확인
echo ">>> Current Directory: $(pwd)"
echo ">>> File Structure (Depth 3):"
find . -maxdepth 3 -not -path '*/.*'

# 2. package.json이 어디 있는지 찾아서 이동 (자동 감지 로직)
if [ -f "apps/editor/package.json" ]; then
echo ">>> Found package.json inside apps/editor! Moving there..."
cd apps/editor
elif [ -f "package.json" ]; then
echo ">>> Found package.json in root."
else
echo ">>> ERROR: Cannot find package.json anywhere!"
exit 1
fi


echo ">>> Installing dependencies in $(pwd)..."
pnpm install --production
2 changes: 1 addition & 1 deletion apps/editor/scripts/start_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ NVM_BIN_PATH="/home/ubuntu/.nvm/versions/node/v22.21.0/bin"

export PATH="$NVM_BIN_PATH:$PATH"

cd /home/ubuntu/application || exit 1
cd /home/ubuntu/application/apps/editor || exit 1


if [ ! -f /etc/nginx/conf.d/proxy_pass.inc ]; then
Expand Down