Skip to content

Commit d70f64d

Browse files
Robin BuschmannRobin Buschmann
authored andcommitted
documentation extended; deploment.config cleaned
1 parent c814908 commit d70f64d

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

.ebextensions/deployment.config

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@
2020
"option_name": "ELBSubnets",
2121
"value": "subnet-09f63d61"
2222
},
23-
{
24-
"namespace": "aws:autoscaling:launchconfiguration",
25-
"option_name": "InstanceType",
26-
"value": "t2.nano"
27-
},
2823
{
2924
"namespace": "aws:autoscaling:launchconfiguration",
3025
"option_name": "SecurityGroups",

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ The policy should look like this:
4949
}
5050
````
5151

52+
#### Saved configurations (aws)
53+
54+
There are currently 2 saved configurations for the intercharge application:
55+
- `intercharge-dev`
56+
- `intercharge-prod`
57+
5258
### Environment variables
5359

5460
The application needs some environment variables for configuration.
@@ -106,6 +112,16 @@ MYSQL/Aurora | TCP | 3306 | sg-?????
106112
107113
````
108114

115+
### Deployment via eb-cli
116+
117+
#### Creating new environment in elasticbeanstalk via eb-cli
118+
119+
From the repo directory call `eb create <ENVIRONMENT_NAME> --cfg <SAVED_CONFIG_NAME>` to create a new environment. Pass one of the available configurations to create either a production or a development/qa instance.
120+
121+
#### Deploy new versions
122+
123+
From the repo directory select the environment, which should be updated (`eb use <ENVIRONMENT_NAME>`) and call `eb deploy`. Therefore the last changes have to be pushed to the remote repo.
124+
109125
## Running node.js server
110126

111127
To start the server use `ENVIRONMENT={development|production} ... DB_HOST={string} npm start` in command line.

0 commit comments

Comments
 (0)