Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Commit

Permalink
Add rackup and Procfile for development
Browse files Browse the repository at this point in the history
  • Loading branch information
luislavena committed Jan 11, 2014
1 parent d5acb58 commit e025aec
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions Procfile.dev
@@ -0,0 +1 @@
web: shotgun --port $PORT --host 0.0.0.0
18 changes: 18 additions & 0 deletions config.ru
@@ -0,0 +1,18 @@
require "bundler"
rack_env = ENV.fetch("RACK_ENV", "development").to_sym
Bundler.setup(:default, rack_env)

# ensure our application is in the $LOAD_PATH
libdir = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)

# Load environment variables from .env files
# (gives priority to local files too)
require "dotenv"
Dotenv.load ".env.#{rack_env}", ".env"

require "power"

map "/" do
run Power::Application
end

0 comments on commit e025aec

Please sign in to comment.