forked from wycats/merb
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update merb app generator to work with merb-core
- Loading branch information
Ezra Zygmuntowicz
committed
Feb 1, 2008
1 parent
322d894
commit a941771
Showing
7 changed files
with
37 additions
and
7 deletions.
There are no files selected for viewing
7 changes: 6 additions & 1 deletion
7
merb-gen/app_generators/merb/templates/config/environments/development.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
puts "Loaded DEVELOPMENT Environment..." | ||
puts "Loaded DEVELOPMENT Environment..." | ||
Merb::Config.use { |c| | ||
c[:exception_details] = true | ||
c[:reload_classes] = true | ||
c[:reload_time] = 0.5 | ||
} |
6 changes: 5 additions & 1 deletion
6
merb-gen/app_generators/merb/templates/config/environments/production.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
puts "Loaded PRODUCTION Environment..." | ||
puts "Loaded PRODUCTION Environment..." | ||
Merb::Config.use { |c| | ||
c[:exception_details] = false | ||
c[:reload_classes] = false | ||
} |
7 changes: 6 additions & 1 deletion
7
merb-gen/app_generators/merb/templates/config/environments/test.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
puts "Loaded TEST Environment..." | ||
puts "Loaded TEST Environment..." | ||
Merb::Config.use { |c| | ||
c[:exception_details] = true | ||
c[:reload_classes] = true | ||
c[:reload_time] = 0.5 | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<% require 'sha1' %> | ||
--- | ||
# Hostname or IP address to bind to. | ||
:host: 0.0.0.0 | ||
|
||
# Port merb runs on or starting port for merb cluster. | ||
:port: "4000" | ||
|
||
# Uncomment if you have more than one ORM or if you need to be specific about | ||
# which memory store to use. Built-in options are: memory, cookie, or mem_cache | ||
:session_store: cookie | ||
|
||
#:memory_session_ttl: 3600 # one hour | ||
|
||
# A secret key is required when using the 'cookie' session store (default), | ||
# change this value to something unique to your application and keep it private | ||
:session_secret_key: <%= SHA1.new(rand(100000000000).to_s).to_s %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
run Merb::Rack::Application.new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
#!/usr/bin/env ruby | ||
|
||
ARGV=["-F"] | ||
require 'merb/server' | ||
|
||
Merb::Server.run | ||
argv = ARGV + %w[-a fcgi] | ||
Merb.start(argv) |