Skip to content

Commit

Permalink
Merge pull request newrelic#18 from dcelis/master
Browse files Browse the repository at this point in the history
Add production environments for be_site projects
  • Loading branch information
Jesse Dearing committed May 27, 2014
2 parents b228979 + 7062de5 commit 048bdf3
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 12 deletions.
12 changes: 10 additions & 2 deletions projects/be_site.rake
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace :environment do
env_vars RPM_DB_PASSWORD: 'ju0jobil'
env_vars RPM_DB_HOST: 'mysql-staging-acct'
env_vars RPM_DB_SCHEMA: 'rpm_staging'
env_vars RPM_REDIS_URL: 'redis://:2anAChAHup434Kuf6udu@chi-staging-bgleader-1.nr-ops.net:6379'
env_vars REDIS_URL: 'redis://staging-beredis.awsdev.nr-ops.net:6379/'
env_vars PORT: 3000

host_port 9001, container_port: 80
Expand All @@ -21,7 +21,15 @@ namespace :environment do
task :production => :common do
set_current_environment(:production)
env_vars RACK_ENV: 'production'
env_vars RAILS_ENV: 'production'
env_vars RPM_DB_USERNAME: 'rpm_fg'
env_vars RPM_DB_PASSWORD: 'CRac4ujEThupRerU'
env_vars RPM_DB_HOST: 'mysql-acct'
env_vars RPM_DB_SCHEMA: 'rpm_production'
env_vars REDIS_URL: 'redis://:[email protected]:6379/'

host_port 9001, container_port: 80
env_vars RPM_REDIS_URL: 'redis://:suPrA6uceWUPheh%[email protected]:6379'
host 'chi-prod-be-docker-1.nr-ops.net'
host 'chi-prod-be-docker-2.nr-ops.net'
end
end
20 changes: 14 additions & 6 deletions projects/be_site_resque.rake
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,26 @@ namespace :environment do
env_vars RPM_DB_PASSWORD: 'ju0jobil'
env_vars RPM_DB_HOST: 'mysql-staging-acct'
env_vars RPM_DB_SCHEMA: 'rpm_staging'
env_vars RPM_REDIS_URL: 'redis://:[email protected]:6379'
#HACK: Adding this because Centurion IDs containers by this for now
host_port 20001, container_port: 80
env_vars REDIS_URL: 'redis://staging-beredis.awsdev.nr-ops.net:6379/'

# HACK: Adding this because Centurion IDs containers by this for now
host_port 20001, container_port: 80
host 'use1v-staging-docker-1.awsdev.nr-ops.net'
end

task :production => :common do
set_current_environment(:production)
#HACK: Adding this because Centurion IDs containers by this for now
host_port 20001, container_port: 80
env_vars RACK_ENV: 'production'
env_vars RPM_REDIS_URL: 'redis://:suPrA6uceWUPheh%[email protected]:6379'
env_vars RAILS_ENV: 'production'
env_vars RPM_DB_USERNAME: 'rpm_fg'
env_vars RPM_DB_PASSWORD: 'CRac4ujEThupRerU'
env_vars RPM_DB_HOST: 'mysql-acct'
env_vars RPM_DB_SCHEMA: 'rpm_production'
env_vars REDIS_URL: 'redis://:[email protected]:6379/'

# HACK: Adding this because Centurion IDs containers by this for now
host_port 20001, container_port: 80
host 'chi-prod-be-docker-1.nr-ops.net'
host 'chi-prod-be-docker-2.nr-ops.net'
end
end
15 changes: 11 additions & 4 deletions projects/be_site_resque_scheduler.rake
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace :environment do
env_vars RPM_DB_PASSWORD: 'ju0jobil'
env_vars RPM_DB_HOST: 'mysql-staging-acct'
env_vars RPM_DB_SCHEMA: 'rpm_staging'
env_vars RPM_REDIS_URL: 'redis://:2anAChAHup434Kuf6udu@chi-staging-bgleader-1.nr-ops.net:6379'
env_vars REDIS_URL: 'redis://staging-beredis.awsdev.nr-ops.net:6379/'
#HACK: Adding this because Centurion IDs containers by this for now
host_port 20002, container_port: 80

Expand All @@ -20,9 +20,16 @@ namespace :environment do

task :production => :common do
set_current_environment(:production)
#HACK: Adding this because Centurion IDs containers by this for now
host_port 20002, container_port: 80
env_vars RACK_ENV: 'production'
env_vars RPM_REDIS_URL: 'redis://:suPrA6uceWUPheh%[email protected]:6379'
env_vars RAILS_ENV: 'production'
env_vars RPM_DB_USERNAME: 'rpm_fg'
env_vars RPM_DB_PASSWORD: 'CRac4ujEThupRerU'
env_vars RPM_DB_HOST: 'mysql-acct'
env_vars RPM_DB_SCHEMA: 'rpm_production'
env_vars REDIS_URL: 'redis://:[email protected]:6379/'

# HACK: Adding this because Centurion IDs containers by this for now
host_port 20001, container_port: 80
host 'chi-prod-be-docker-2.nr-ops.net'
end
end

0 comments on commit 048bdf3

Please sign in to comment.