Skip to content

Instantly share code, notes, and snippets.

@HazemBZ
Last active January 4, 2023 15:50
Show Gist options
  • Save HazemBZ/c4048df221d3c61650f2eeabbae5a138 to your computer and use it in GitHub Desktop.
Save HazemBZ/c4048df221d3c61650f2eeabbae5a138 to your computer and use it in GitHub Desktop.
Beanstalk deployment files sample
branch-defaults:
default:
environment: image-filter-app-env
group_suffix: null
main:
environment: image-filter-app-env
deploy:
artifact: ./www/Archive.zip
global:
application_name: image-filter-app
branch: null
default_ec2_keyname: aws-eb-key
default_platform: Node.js 16 running on 64bit Amazon Linux 2
default_region: us-east-2
include_git_submodules: true
instance_profile: null
platform_name: null
platform_version: null
profile: hazem-dev
repository: null
sc: git
workspace_type: Application
{
"main": "server.js",
"scripts": {
"start": "node ./www/server.js",
"tsc": "tsc",
"prod": "tsc && node ./www/server.js",
"test": "echo \"Error: no test specified\" && exit 1",
"clean": "rimraf www/ || true",
"build": "npm run clean && tsc && cp package.json www/package.json && cp .npmrc www/.npmrc && cd www && zip -r Archive.zip . && cd ..",
"dev": "ts-node-dev --respawn --transpile-only ./src/server.ts"
},
"engines": {
"node": "16.1.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment