adding postgres to production deployment
This commit is contained in:
@@ -3,8 +3,8 @@ option_settings:
|
||||
EnvironmentType: SingleInstance
|
||||
aws:rds:dbinstance:
|
||||
DBEngine: postgres
|
||||
DBInstanceClass: "db.t2.small"
|
||||
DBAllocatedStorage: 6
|
||||
DBInstanceClass: "db.t2.micro"
|
||||
DBAllocatedStorage: 5
|
||||
DBUser: strapi
|
||||
aws:ec2:instances:
|
||||
InstanceTypes: "t2.micro"
|
||||
|
||||
3
.ebextensions/05-npm-commands.config
Normal file
3
.ebextensions/05-npm-commands.config
Normal file
@@ -0,0 +1,3 @@
|
||||
container_commands:
|
||||
installpg:
|
||||
command: "npm install pg"
|
||||
@@ -4,7 +4,7 @@
|
||||
"default": {
|
||||
"connector": "bookshelf",
|
||||
"settings": {
|
||||
"client": "sqlite",
|
||||
"client": "postgres",
|
||||
"host": "${process.env.DATABASE_HOST || '127.0.0.1'}",
|
||||
"port": "${process.env.DATABASE_PORT || 27017}",
|
||||
"database": "${process.env.DATABASE_NAME || 'strapi'}",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"host": "${process.env.HOST || '0.0.0.0'}",
|
||||
"host": "${process.env.HOST || 'strapi-prod.eu-west-1.elasticbeanstalk.com'}",
|
||||
"port": "${process.env.PORT || 1337}",
|
||||
"production": true,
|
||||
"proxy": {
|
||||
|
||||
Reference in New Issue
Block a user