Skip to content

Instantly share code, notes, and snippets.

View webandtech's full-sized avatar

Aaron Severs webandtech

  • Noom
  • New York, NY
View GitHub Profile
@webandtech
webandtech / cf.rake
Last active December 18, 2015 19:48
Rake task for deploying a git repo to Cloud Foundry. Based on https://gist.github.com/jamiew/4429547
require 'fileutils'
namespace :cf do
desc 'Deploy to staging on Cloud Foundry'
task :deploy_staging do
cf_target = 'api.run.pivotal.io'
deploy_branch = 'master'
deploy_space = 'staging'
deploy_org = "YOUR ORGANIZATION"
deploy_repo_dir = "tmp/cf_deploy"
@webandtech
webandtech / cf.yml
Created July 11, 2013 01:10
Example manifest file for Cloud Foundry to use with cf.rake deploy task
---
applications:
- name: pivotalallocations2
command: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
path: ../
04380d45357b2071902ab26baf2364a1f12493b36195f1ff7eb410c14e3bc198793c15e0ccedf58092bead0d97dd35c412d164ed1da227bba1c5bd23c9de9ca36f;mattdodge