-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: 💡 set custom package.json for production deploy
- Loading branch information
1 parent
0f55d1b
commit ba3f259
Showing
3 changed files
with
116 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,11 +139,15 @@ jobs: | |
- name: Set custom package.json | ||
run: | | ||
sshpass -p "${{ secrets.LIGHTSAIL_SSH_PASS }}" ssh -o StrictHostKeyChecking=no [email protected] "cd apps/web && echo ${{secrets.APPS_WEB_PACKAGE}} > package.json" | ||
sshpass -p "${{ secrets.LIGHTSAIL_SSH_PASS }}" ssh -o StrictHostKeyChecking=no [email protected] "cd apps/web && rm package.json && mv package.prod.json package.json" | ||
- name: Install server dependencies | ||
run: | | ||
sshpass -p "${{ secrets.LIGHTSAIL_SSH_PASS }}" ssh -o StrictHostKeyChecking=no [email protected] "cd apps/web && pnpm install" | ||
- name: Start server | ||
run: | | ||
sshpass -p "${{ secrets.LIGHTSAIL_SSH_PASS }}" ssh -o StrictHostKeyChecking=no [email protected] "cd apps/web && pnpm install && pm2 start pnpm --name "web" -- start" | ||
sshpass -p "${{ secrets.LIGHTSAIL_SSH_PASS }}" ssh -o StrictHostKeyChecking=no [email protected] "cd apps/web && pm2 start pnpm --name "web" -- start" | ||
- name: Create output artifact | ||
uses: actions/upload-artifact@v2 | ||
|
@@ -200,11 +204,15 @@ jobs: | |
- name: Set custom package.json | ||
run: | | ||
sshpass -p "${{ secrets.LIGHTSAIL_SSH_PASS }}" ssh -o StrictHostKeyChecking=no [email protected] "cd apps/docs && echo ${{secrets.APPS_DOCS_PACKAGE}} > package.json" | ||
sshpass -p "${{ secrets.LIGHTSAIL_SSH_PASS }}" ssh -o StrictHostKeyChecking=no [email protected] "cd apps/docs && rm package.json && mv package.prod.json package.json" | ||
- name: Install server dependencies | ||
run: | | ||
sshpass -p "${{ secrets.LIGHTSAIL_SSH_PASS }}" ssh -o StrictHostKeyChecking=no [email protected] "cd apps/docs && pnpm install" | ||
- name: Start server | ||
run: | | ||
sshpass -p "${{ secrets.LIGHTSAIL_SSH_PASS }}" ssh -o StrictHostKeyChecking=no [email protected] "cd apps/docs && pnpm install && pm2 start pnpm --name "docs" -- start" | ||
sshpass -p "${{ secrets.LIGHTSAIL_SSH_PASS }}" ssh -o StrictHostKeyChecking=no [email protected] "cd apps/docs && pm2 start pnpm --name "docs" -- start" | ||
- name: Create output artifact | ||
uses: actions/upload-artifact@v2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "wizeprompt-docs", | ||
"version": "0.0.1", | ||
"description": "Wizeline | Wizeprompt Docs", | ||
"scripts": { | ||
"dev": "next dev --port 3001", | ||
"build": "next build", | ||
"start": "next start" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/wizelineacademy/itesm-socioformador-ago-dec-2023-team-02.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/wizelineacademy/itesm-socioformador-ago-dec-2023-team-02/issues" | ||
}, | ||
"homepage": "", | ||
"dependencies": { | ||
"next": "^13.0.6", | ||
"nextra": "latest", | ||
"nextra-theme-docs": "latest", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "18.11.10", | ||
"typescript": "^4.5.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
{ | ||
"name": "wizeprompt", | ||
"repository": "https://github.com/wizelineacademy/itesm-socioformador-ago-dec-2023-team-02.git", | ||
"version": "0.0.1", | ||
"private": true, | ||
"scripts": { | ||
"dev": "prisma generate && next dev", | ||
"build": "prisma generate && prisma db push && prisma db seed && next build", | ||
"start": "next start", | ||
"lint": "next lint", | ||
"lint:fix": "next lint --fix" | ||
}, | ||
"prisma": { | ||
"seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts" | ||
}, | ||
"dependencies": { | ||
"@auth0/nextjs-auth0": "^3.3.0", | ||
"@aws-sdk/client-s3": "^3.445.0", | ||
"@nextui-org/react": "^2.1.13", | ||
"@nextui-org/system": "^2.0.10", | ||
"@nextui-org/theme": "^2.1.9", | ||
"@prisma/client": "^5.2.0", | ||
"@radix-ui/react-slider": "^1.1.2", | ||
"@radix-ui/react-slot": "^1.0.2", | ||
"@react-stately/data": "^3.11.0", | ||
"@tailwindcss/typography": "^0.5.10", | ||
"@types/react-color": "^3.0.9", | ||
"@vercel/postgres": "^0.4.1", | ||
"ai": "^2.2.20", | ||
"autoprefixer": "10.4.15", | ||
"aws-sdk": "^2.1490.0", | ||
"class-variance-authority": "^0.7.0", | ||
"clsx": "^2.0.0", | ||
"eslint": "8.48.0", | ||
"eslint-config-next": "14.0.3", | ||
"framer-motion": "^10.16.4", | ||
"gpt-tokenizer": "^2.1.2", | ||
"lucide-react": "^0.286.0", | ||
"ms": "^2.1.3", | ||
"next": "14.0.3", | ||
"next-themes": "^0.2.1", | ||
"postcss": "8.4.28", | ||
"react": "18.2.0", | ||
"react-color": "^2.19.3", | ||
"react-dom": "18.2.0", | ||
"react-icons": "^4.11.0", | ||
"react-markdown": "^8.0.7", | ||
"react-syntax-highlighter": "^15.5.0", | ||
"remark-gfm": "^3.0.1", | ||
"remark-math": "^5.1.1", | ||
"sonner": "^1.0.3", | ||
"tailwind-merge": "^1.14.0", | ||
"tailwindcss": "3.3.3", | ||
"tailwindcss-animate": "^1.0.7", | ||
"ts-node": "^10.9.1", | ||
"uuid": "^9.0.1" | ||
}, | ||
"devDependencies": { | ||
"@next/eslint-plugin-next": "^13.4.19", | ||
"@types/ms": "^0.7.31", | ||
"@types/node": "20.5.6", | ||
"@types/react": "18.2.37", | ||
"@types/react-dom": "18.2.15", | ||
"@types/react-syntax-highlighter": "^15.5.10", | ||
"@types/uuid": "^9.0.7", | ||
"client-s3": "link:@types/@aws-sdk/client-s3", | ||
"prisma": "^5.2.0", | ||
"turbo": "^1.10.13", | ||
"typescript": "5.1.3" | ||
}, | ||
"resolutions": { | ||
"@types/react": "18.2.21", | ||
"@types/react-dom": "18.2.7" | ||
} | ||
} |