Public | Automated Build

Last pushed: 7 months ago
Short Description
CI boxes for gonzedge.com's Concourse Pipeline.
Full Description

Repository for gonzedge.com

Welcome to the gonzedge.com repository.

Development

To setup your development environment, start by installing Ruby, NPM and Bower with:

rvm install <latest-ruby-version>
brew install npm
npm install bower -g

Now, install all dependencies with:

gem install bundler
bundle
bower install

Finally, start your server with:

source .env
bundle exec middleman serve

Deployment

This site is hosted in CloudFoundry and uses the Static-file buildpack to run the application.

Before being able to deploy, you need to set up the cloudfoundry-cli with:

brew tap pivotal/tap
brew install cloudfoundry-cli

Deploying to PWS

First, make sure you are logged into CloudFoundry through the console:

cf login -a https://api.run.pivotal.io
# Email>
# Password>

Then, deploy the latest version to of the app.

Deploying to PWS

First, make sure you have an account in Pivotal Web Services. Then:

cf login -a https://api.run.pivotal.io
# Email>
# Password>

Then, deploy the latest version to of the app.

Deploying to PEZ

First, make sure you are logged into PEZ CloudFoundry through the console (you might need to generate a Temporary Authentication Code):

cf login --sso -a https://api.run.pez.pivotal.io
# API endpoint: https://api.run.pez.pivotal.io
# Email>
# One Time Code ( Get one at https://login.run.pez.pivotal.io/passcode )>

Then, deploy the latest version to of the app.

Deploying the latest version

In order to deploy the latest version of the app to the staging environment, run:

./scripts/deploy.sh staging

This will execute the following commands:

source .env
bundle exec middleman build
cf target -o gonzedge -s development
cf push gonzedge-staging

Deploying to a new app name

If you are trying to deploy the app to a new app name in CloudFoundry, you might have to do this:

source .env
bundle exec middleman build
cf push <app-name> -n <subdomain>

Zero-downtime deployment

To achieve zero-downtime production deployment, run:

./scripts/deploy.sh production

This will run these commands:

source .env
bundle exec middleman build

cf target -o gonzedge -s production
cf unmap-route gonzedge-blue gonzedge.com -n www
cf push gonzedge-blue
cf map-route gonzedge-blue gonzedge.com -n www
cf unmap-route gonzedge-green gonzedge.com -n www
cf push gonzedge-green
cf map-route gonzedge-green gonzedge.com -n www
Docker Pull Command
Owner
gonzedge
Source Repository

Comments (0)