Skip to content

Commit

Permalink
now with fig.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ubergesundheit committed Feb 15, 2015
1 parent d4d7f99 commit 257b67d
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
15 changes: 15 additions & 0 deletions config/puma.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
workers Integer(ENV['WEB_CONCURRENCY'] || 2)
threads_count = Integer(ENV['MAX_THREADS'] || 5)
threads threads_count, threads_count

preload_app!

rackup DefaultRackup
port ENV['PORT'] || 3000
environment ENV['RACK_ENV'] || 'development'

on_worker_boot do
# Worker specific setup for Rails 4.1+
# See: https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server#on-worker-boot
ActiveRecord::Base.establish_connection
end
29 changes: 29 additions & 0 deletions fig.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
postgis:
image: mdillon/postgis:9.4
environment:
- POSTGRES_PASSWORD=yoloswag

app:
build: .
volumes:
- .:/usr/src/app
ports: "3000:3000"
links:
- postgis
environment:
- RAILS_ENV=production
- DEVISE_SECRET_KEY=swaghettiYolonaise
- SECRET_KEY_BASE=swaghettiYolonaise
- OAUTH_FACEBOOK_KEY=swaghettiYolonaise
- OAUTH_FACEBOOK_SECRET=swaghettiYolonaise
- OAUTH_TWITTER_KEY=swaghettiYolonaise
- OAUTH_TWITTER_SECRET=swaghettiYolonaise
- OAUTH_GOOGLE_KEY=swaghettiYolonaise
- OAUTH_GOOGLE_SECRET=swaghettiYolonaise
- HOSTNAME=localhost:3000
- SMTP_HOST=smtp.mandrillapp.com
- SMTP_PORT=25
- SMTP_USER=SOMEUSER
- SMTP_PASSWORD=SOMEPASS
- [email protected]
- SENTRY_DSN=http://localhost

0 comments on commit 257b67d

Please sign in to comment.