Skip to content

Instantly share code, notes, and snippets.

@johnmarc
Created January 25, 2016 20:02
Show Gist options
  • Save johnmarc/dc145d15e12a528731f8 to your computer and use it in GitHub Desktop.
Save johnmarc/dc145d15e12a528731f8 to your computer and use it in GitHub Desktop.
diff --git a/Procfile b/Procfile
index 09afc3b..3cf7acf 100644
--- a/Procfile
+++ b/Procfile
@@ -1,4 +1,32 @@
-sneakers: /var/app/current/bin/rake sneakers:run WORKERS=ActivityFeedWorker,PushstreamPublisherWorker,CurriculumValidationsWorker,CloneCurriculumWorker,HandraiseWorker,UserActivityWorker,LessonsOfInterestPublisherWorker,DailyBatchReportWorker,NewManagedNitrousEmailPublisherWorker,NitrousContainerSetupWorker,ManagedNitrousMigrationWorker,InvitationWorker,SuggestChangeEmailPublisherWorker,TeamForksWorker,VerifiedUserFlowEmailWorker,SalesforceUpdateWorker,IntercomWorker,DeploymentsWorker,DeployAssignmentWorker,MobileSignUpEmailWorker,StudyGroupEmailWorker,ChatRoomBulkInvitationWorker,ChatRoomKickerWorker,LiveReviewWorker
-github: /var/app/current/bin/rake sneakers:run WORKERS=GithubWorker,GithubRepoSyncWorker,GithubUserNotifierWorker
-nongithub: /var/app/current/bin/rake sneakers:run WORKERS=TrackYamlWorker,ReadmeWorker,LocalBuildWorker,HelpCenterSyncWorker
+activityfeed: /var/app/current/bin/rake sneakers:run WORKERS=ActivityFeedWorker
+pushstreampublish: /var/app/current/bin/rake sneaker:run WORKERS=PushstreamPublisherWorker
+curreiculumvalidations: /var/app/current/bin/rake sneakers:run S=CurriculumValidationsWorker
+clonecurriculum: /var/app/current/bin/rake sneakers:run S=CloneCurriculumWorker
+handraise: /var/app/current/bin/rake sneakers:run WORKERS=HandraiseWorker
+useractivity: /var/app/current/bin/rake sneakers:run WORKERS=UserActivityWorker
+lessonsofinterestpublisher: /var/app/current/bin/rake sneakers:run WORKERS=LessonsOfInterestPublisherWorker
+dailybatchreport: /var/app/current/bin/rake sneakers:run WORKERS=DailyBatchReportWorker
+newmanagednitrousemailpublisher: /var/app/current/bin/rake sneakers:run WORKERS=NewManagedNitrousEmailPublisherWorker
+nitrouscontainersetup: /var/app/current/bin/rake sneakers:run WORKERS=NitrousContainerSetupWorker
+managednitroushmigration: /var/app/current/bin/rake sneakers:run WORKERS=ManagedNitrousMigrationWorker
+invitation: /var/app/current/bin/rake sneakers:run WORKERS=InvitationWorker
+suggestchangeemailpublisher: /var/app/current/bin/rake sneakers:run WORKERS=SuggestChangeEmailPublisherWorker
+teamforks: /var/app/current/bin/rake sneakers:run WORKERS=TeamForksWorker
+verifieduserflowemail: /var/app/current/bin/rake sneakers:run WORKERS=VerifiedUserFlowEmailWorker
+salesforceupdate: /var/app/current/bin/rake sneakers:run WORKERS=SalesforceUpdateWorker
+intercom: /var/app/current/bin/rake sneakers:run WORKERS=IntercomWorker
+deployments: /var/app/current/bin/rake sneakers:run WORKERS=DeploymentsWorker
+deployassignment: /var/app/current/bin/rake sneakers:run WORKERS=DeployAssignmentWorker
+mobilesignupemail: /var/app/current/bin/rake sneakers:run WORKERS=MobileSignUpEmailWorker
+studygroupemail: /var/app/current/bin/rake sneakers:run WORKERS=StudyGroupEmailWorker
+chatroombulkinvitation: /var/app/current/bin/rake sneakers:run WORKERS=ChatRoomBulkInvitationWorker
+chatroomkicker: /var/app/current/bin/rake sneakers:run WORKERS=ChatRoomKickerWorker
+livereview: /var/app/current/bin/rake sneakers:run WORKERS=LiveReviewWorker
+github: /var/app/current/bin/rake sneakers:run WORKERS=GithubWorker
+githubreposync: /var/app/current/bin/rake sneakers:run WORKERS=GithubRepoSyncWorker
+githubusernotifier: /var/app/current/bin/rake sneakers:run WORKERS=GithubUserNotifierWorker
+trackyaml: /var/app/current/bin/rake sneakers:run WORKERS=TrackYamlWorker
+readme: /var/app/current/bin/rake sneakers:run WORKERS=ReadmeWorker
+localbuild: /var/app/current/bin/rake sneakers:run WORKERS=LocalBuildWorker
+helpcentersync: /var/app/current/bin/rake sneakers:run WORKERS=HelpCenterSyncWorker
clock: /var/app/current/bin/bundle exec clockwork /var/app/current/lib/clock.rb
diff --git a/config/deploy.rb b/config/deploy.rb
index eb81bbf..099e452 100644
--- a/config/deploy.rb
+++ b/config/deploy.rb
@@ -37,7 +37,7 @@ namespace :deploy do
within release_path do
with rails_env: fetch(:rails_env) do
#execute :bundle, :exec, "sudo foreman export upstart /etc/init --app='ironboard' --log='/var/app/shared/log' --user='deployer'"
- execute :bundle, :exec, "sudo foreman export supervisord /etc/supervisor/conf.d -a ironboard -u deployer -l #{shared_path}/log --procfile #{release_path}/Procfile --env #{shared_path}/.env --root #{release_path} -c sneakers=1,github=1,clock=1,nongithub=1"
+ execute :bundle, :exec, "sudo foreman export supervisord /etc/supervisor/conf.d -a ironboard -u deployer -l #{shared_path}/log --procfile #{release_path}/Procfile --env #{shared_path}/.env --root #{release_path} -c activityfeed=1,pushstreampublish=1,curreiculumvalidations=1,clonecurriculum=1,handraise=1,useractivity=1,lessonsofinterestpublisher=1,dailybatchreport=1,newmanagednitrousemailpublisher=1,nitrouscontainersetup=1,managednitrousmigration=1,invitation=1,suggestchangeemailpublisher=1,teamforks=1,verifieduserflowemail=1,salesforceupdate=1,intercom=1,deployments=1,deployassignment=1,mobilesignupemail=1,studygroupemail=1,chatroombulkinvitation=1,chatroomkicker=1,livereview=1,github=1,githubreposync=1,githubusernotifier=1,trackyaml=1,readme=1,localbuild=1,helpcentersync=1,clock=1"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment