adding postgres to production deployment
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
option_settings:
|
option_settings:
|
||||||
aws:elasticbeanstalk:environment:
|
aws:elasticbeanstalk:environment:
|
||||||
EnvironmentType: SingleInstance
|
EnvironmentType: SingleInstance
|
||||||
aws:rds:dbinstance:
|
aws:rds:dbinstance:
|
||||||
DBEngine: postgres
|
DBEngine: postgres
|
||||||
DBInstanceClass: "db.t2.small"
|
DBInstanceClass: "db.t2.micro"
|
||||||
DBAllocatedStorage: 6
|
DBAllocatedStorage: 5
|
||||||
DBUser: strapi
|
DBUser: strapi
|
||||||
aws:ec2:instances:
|
aws:ec2:instances:
|
||||||
InstanceTypes: "t2.micro"
|
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": {
|
"default": {
|
||||||
"connector": "bookshelf",
|
"connector": "bookshelf",
|
||||||
"settings": {
|
"settings": {
|
||||||
"client": "sqlite",
|
"client": "postgres",
|
||||||
"host": "${process.env.DATABASE_HOST || '127.0.0.1'}",
|
"host": "${process.env.DATABASE_HOST || '127.0.0.1'}",
|
||||||
"port": "${process.env.DATABASE_PORT || 27017}",
|
"port": "${process.env.DATABASE_PORT || 27017}",
|
||||||
"database": "${process.env.DATABASE_NAME || 'strapi'}",
|
"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}",
|
"port": "${process.env.PORT || 1337}",
|
||||||
"production": true,
|
"production": true,
|
||||||
"proxy": {
|
"proxy": {
|
||||||
|
|||||||
Reference in New Issue
Block a user