diff --git a/config/environments/production/database.json b/config/environments/production/database.json index fec88b7..f3840ca 100644 --- a/config/environments/production/database.json +++ b/config/environments/production/database.json @@ -7,7 +7,7 @@ "client": "postgres", "host": "${process.env.RDS_HOSTNAME || '127.0.0.1'}", "port": "${process.env.RDS_PORT || 27017}", - "database": "${process.env.RDS_NAME || 'strapi'}", + "database": "${process.env.RDS_NAME || 'postgres'}", "username": "${process.env.RDS_USERNAME || ''}", "password": "${process.env.RDS_PASSWORD || ''}" }, diff --git a/runningnotes.md b/runningnotes.md index 5f37353..c4bf170 100644 --- a/runningnotes.md +++ b/runningnotes.md @@ -14,3 +14,12 @@ 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: +http://blog.blackninjadojo.com/aws/elastic-beanstalk/2019/01/28/adding-a-database-to-your-rails-application-on-elastic-beanstalk-using-rds.html + +Tie this in with a cloudformation template + hooking it up + +/opt/elasticbeanstalk/node-install/node-v12.16.1-linux-x64/bin + +Try setting the database name using cloudformation template