6 changed files with 44 additions and 34 deletions
@ -0,0 +1,13 @@ |
|||||||
|
# Staging |
||||||
|
|
||||||
|
1. Login:\ |
||||||
|
`cf login -a api.london.cloud.service.gov.uk -u <your_username>` |
||||||
|
|
||||||
|
2. Set your deployment target (staging):\ |
||||||
|
`cf target -o dluhc-core -s staging` |
||||||
|
|
||||||
|
3. Create required backing services (this will take ~15 mins to finish creating): |
||||||
|
`cf create-service postgres tiny-unencrypted-13 dluhc-core-staging-postgres` |
||||||
|
|
||||||
|
4. Deploy manifest: |
||||||
|
`cf push dluhc-core-staging --strategy rolling` |
@ -0,0 +1,26 @@ |
|||||||
|
--- |
||||||
|
defaults: &defaults |
||||||
|
buildpacks: |
||||||
|
- https://github.com/cloudfoundry/ruby-buildpack.git |
||||||
|
processes: |
||||||
|
- type: web |
||||||
|
command: rake db:migrate && bin/rails server |
||||||
|
instances: 2 |
||||||
|
memory: 512M |
||||||
|
|
||||||
|
applications: |
||||||
|
- name: dluhc-core-staging |
||||||
|
<<: *defaults |
||||||
|
env: |
||||||
|
RAILS_ENV: staging |
||||||
|
host: staging-submit-social-housing-lettings-sales-data.london.cloudapps.digital |
||||||
|
services: |
||||||
|
- dluhc-core-staging-postgres |
||||||
|
|
||||||
|
- name: dluhc-core-production |
||||||
|
<<: *defaults |
||||||
|
env: |
||||||
|
RAILS_ENV: production |
||||||
|
host: submit-social-housing-lettings-sales-data.london.cloudapps.digital |
||||||
|
services: |
||||||
|
- dluhc-core-production-postgres |
@ -1,14 +0,0 @@ |
|||||||
--- |
|
||||||
applications: |
|
||||||
- name: dluhc-core |
|
||||||
buildpacks: |
|
||||||
- https://github.com/cloudfoundry/ruby-buildpack.git |
|
||||||
env: |
|
||||||
RAILS_ENV: production |
|
||||||
processes: |
|
||||||
- type: web |
|
||||||
command: rake db:migrate && bin/rails server |
|
||||||
instances: 4 |
|
||||||
memory: 512M |
|
||||||
services: |
|
||||||
- dluhc-core-production-postgres |
|
@ -1,14 +0,0 @@ |
|||||||
--- |
|
||||||
applications: |
|
||||||
- name: dluhc-core |
|
||||||
buildpacks: |
|
||||||
- https://github.com/cloudfoundry/ruby-buildpack.git |
|
||||||
env: |
|
||||||
RAILS_ENV: staging |
|
||||||
processes: |
|
||||||
- type: web |
|
||||||
command: rake db:migrate && bin/rails server |
|
||||||
instances: 2 |
|
||||||
memory: 512M |
|
||||||
services: |
|
||||||
- dluhc-core-staging-postgres |
|
Loading…
Reference in new issue