adding latest
This commit is contained in:
@@ -1,20 +1,9 @@
|
||||
# Running notes
|
||||
|
||||
create an elb with --single and --database
|
||||
|
||||
redeploy with username option set, does it change?
|
||||
|
||||
Does strapi work with a databse set in production mode?
|
||||
|
||||
SSH into EC2 - check if its using sqlite
|
||||
|
||||
deocument that the db has to be done from cli arg, but the configs can be done via files.
|
||||
|
||||
SSL? https://levelup.gitconnected.com/beginners-guide-to-aws-beanstalk-using-node-js-d061bb4b8755
|
||||
|
||||
Add postgres to strapi
|
||||
Add the S3 bucket to strapi
|
||||
|
||||
If doesnt work, try installing yarn in the ELB instance
|
||||
|
||||
Create seperate sql database + VPC rules:
|
||||
@@ -174,6 +163,22 @@ An example is:
|
||||
}
|
||||
```
|
||||
|
||||
## Strapi in git
|
||||
|
||||
To have a strapi project in github you should remove the:
|
||||
|
||||
- `./build`
|
||||
- `./node_modules`
|
||||
|
||||
folders.
|
||||
|
||||
When cloning from the repo you should then do a:
|
||||
|
||||
- `NODE_ENV=development npm install`
|
||||
- `NODE_ENV=development npm run build`
|
||||
|
||||
You can then run Strapi with `npm run develop` or `NODE_ENV=production npm run start`.
|
||||
|
||||
## Cloudformation
|
||||
|
||||
<https://adamtheautomator.com/aws-cli-cloudformation/> (example of deploying an S3 bucket with static site `index.html`.)
|
||||
@@ -219,6 +224,10 @@ Using stacks means AWS will treat all resources as a single unit. They must all
|
||||
|
||||
`aws --profile admin cloudformation deploy --template-file ./01-stack-storage.yaml --stack-name strapi-s3`
|
||||
|
||||
You can pass paramter values in with `--paramter-overrides KEY=VALUE`:
|
||||
|
||||
`--parameter-overrides TestParameter="some test string"`
|
||||
|
||||
#### Destroy a stack
|
||||
|
||||
`aws --profile admin cloudformation delete-stack --stack-name strapi-s3`
|
||||
@@ -236,7 +245,7 @@ Suggested tags for all AWS resources are:
|
||||
| environment | environment resource belongs to | `dev`, `prod` |
|
||||
| deployment | AWS tool used for deployment | `cloudformation`, `elb` |
|
||||
|
||||
### Cloudformation
|
||||
### Cloudformation default tags
|
||||
|
||||
For Cloudformation resources the following tags get applied automatically:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user