Skip to content

Commit

Permalink
Passenger config
Browse files Browse the repository at this point in the history
Create public directory
  • Loading branch information
wmene committed Mar 16, 2012
1 parent eb8084b commit 6e6eb2f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions config/setup_load_paths.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
if ENV['MY_RUBY_HOME'] && ENV['MY_RUBY_HOME'].include?('rvm')
begin
rvm_path = File.dirname(File.dirname(ENV['MY_RUBY_HOME']))
rvm_lib_path = File.join(rvm_path, 'lib')
$LOAD_PATH.unshift rvm_lib_path
require 'rvm'
RVM.use_from_path! File.dirname(File.dirname(__FILE__))
rescue LoadError
# RVM is unavailable at this point.
raise "RVM ruby lib is currently unavailable."
end
end

# Pick the lines for your version of Bundler
# If you're not using Bundler at all, remove all of them

# Require Bundler 1.0
ENV['BUNDLE_GEMFILE'] = File.expand_path('../Gemfile', File.dirname(__FILE__))
require 'bundler/setup'
1 change: 1 addition & 0 deletions public/.placeholder
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add the public dir to git

0 comments on commit 6e6eb2f

Please sign in to comment.