Skip to content

Instantly share code, notes, and snippets.

@underhilllabs
Created July 12, 2018 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save underhilllabs/9448dae155ba8adeddb0da391adf60ec to your computer and use it in GitHub Desktop.
Save underhilllabs/9448dae155ba8adeddb0da391adf60ec to your computer and use it in GitHub Desktop.
Deployment Notes

AWS Stuff

Rails Stuff

Foreman

created a Procfile, Procfile.ec2

web: rails s -p 3000
worker: bundle exec sidekiq -q mailers -q default

Sidekiq

  • Must pass -q mailers to sidekiq executable to tell it to run the mail queue

Sidekiq config file

HTTPS

nginx

Redis

redis daemon must be running in order to pass jobs to background workers.

Clam-AV

  • must pass --fdpass to clamdscan in bg worker to allow clam-av to read files for scanning.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment