Skip to content

Commit 96316c4

Browse files
committed
added heroku
1 parent 75ae9c5 commit 96316c4

15 files changed

+563
-6337
lines changed

Diff for: .github/workflows/ci-cd.yml

+44
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,47 @@ jobs:
4747
- run: npm run build --if-present
4848
- run: npm run test:e2e
4949

50+
51+
# Uncomment the following job to enable automatic deployment to Heroku
52+
# Note: You'll need to set up the HEROKU_API_KEY and HEROKU_APP_NAME secrets in your GitHub repository
53+
54+
# deploy:
55+
# needs: [test, e2e]
56+
# runs-on: ubuntu-latest
57+
# if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
58+
#
59+
# steps:
60+
# - uses: actions/checkout@v4
61+
#
62+
# # Set up Node.js for potential build steps
63+
# - name: Use Node.js
64+
# uses: actions/setup-node@v4
65+
# with:
66+
# node-version: '18.x'
67+
# cache: 'npm'
68+
#
69+
# # Install dependencies
70+
# - run: npm ci
71+
#
72+
# # Build the application if needed
73+
# - run: npm run build
74+
#
75+
# # Deploy to Heroku
76+
# - name: Deploy to Heroku
77+
# uses: akhileshns/[email protected]
78+
# with:
79+
# heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
80+
# heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
81+
# heroku_email: ${{ secrets.HEROKU_EMAIL }}
82+
# procfile: "web: npm run start:prod"
83+
#
84+
# # Optional: Run database migrations if needed
85+
# # - name: Run database migrations
86+
# # run: |
87+
# # heroku run npm run migration:run --app ${{ secrets.HEROKU_APP_NAME }}
88+
#
89+
# # Optional: Add Health check after deployment
90+
# # - name: Health check
91+
# # run: |
92+
# # sleep 30
93+
# # curl https://${{ secrets.HEROKU_APP_NAME }}.herokuapp.com/health

Diff for: DEVELOPMENT.md

-7
This file was deleted.

Diff for: OOP.md

-51
This file was deleted.

Diff for: README.md

+336-33
Large diffs are not rendered by default.

Diff for: extract-nestjs-code.js

-140
This file was deleted.

0 commit comments

Comments
 (0)