Created
December 3, 2021 05:12
-
-
Save vickyRathee/a57ee2c6194596fd8837e7d32620ac1e to your computer and use it in GitHub Desktop.
Deploying NestJS application on Elastic Beanstalk via Code pipeline
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
# Do not change version. This is the version of aws buildspec, not the version of your buldspec file. | |
version: 0.2 | |
phases: | |
install: | |
runtime-versions: | |
nodejs: '12' | |
pre_build: | |
commands: | |
- echo Installing source NPM dependencies... | |
- npm install | |
build: | |
commands: | |
- echo Build started on `date` | |
- echo Running build... | |
- npm run build | |
post_build: | |
commands: | |
- echo Build completed on `date` | |
artifacts: | |
files: | |
- "**/*" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Package.json
should have start command as"start": "node dist/main