Skip to content
This repository has been archived by the owner on Sep 19, 2021. It is now read-only.

Commit

Permalink
Adding simple script to deploy local version
Browse files Browse the repository at this point in the history
  • Loading branch information
adelevie committed Mar 15, 2017
1 parent d08abc8 commit c9e8726
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bin/deploy-local-branch.sh
@@ -0,0 +1,9 @@
#! /bin/bash

cp .env.test .env

docker-compose build

./bin/predeploy.sh

./bin/deploy.sh staging
5 changes: 5 additions & 0 deletions bin/deploy.sh
Expand Up @@ -21,6 +21,11 @@ elif [ $SPACE = 'staging' ]; then
API_MANIFEST="manifest-api-staging.yml"
FRONTEND_NAME="eqip-prototype-staging"
FRONTEND_MANIFEST="manifest-frontend-staging.yml"
elif [ $SPACE = 'dev' ]; then
API_NAME="eqip-prototype-api-dev"
API_MANIFEST="manifest-api-dev.yml"
FRONTEND_NAME="eqip-prototype-dev"
FRONTEND_MANIFEST="manifest-frontend-dev.yml"
else
echo "Unknown space: $SPACE"
exit
Expand Down
15 changes: 15 additions & 0 deletions manifest-api-dev.yml
@@ -0,0 +1,15 @@
---
applications:
- name: eqip-prototype-api-dev
memory: 64M
instances: 2
domain: fr.cloud.gov
host: eqip-prototype-api-dev
buildpack: https://github.com/cloudfoundry/go-buildpack
path: api
command: ./api
services:
- eqip-postgres
env:
GOVERSION: go1.7.5
ALLOW_2FA_RESET: 1
10 changes: 10 additions & 0 deletions manifest-frontend-dev.yml
@@ -0,0 +1,10 @@
---
applications:
- name: eqip-prototype-dev
path: dist
memory: 64M
domain: fr.cloud.gov
host: eqip-prototype-dev
buildpack: https://github.com/cloudfoundry/staticfile-buildpack.git
env:
FORCE_HTTPS: true

0 comments on commit c9e8726

Please sign in to comment.