Skip to content

Commit

Permalink
Updated application templates to add SITE_DOMAIN constant
Browse files Browse the repository at this point in the history
  • Loading branch information
pjb3 committed Apr 13, 2009
1 parent b35e2bf commit 4a12375
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion browsercms.gemspec
@@ -1,7 +1,7 @@
SPEC = Gem::Specification.new do |spec|
spec.name = "browser_cms"
spec.rubyforge_project = spec.name
spec.version = "3.0.0.202"
spec.version = "3.0.0.203"
spec.summary = "A Content Management System for Rails"
spec.author = "BrowserMedia"
spec.email = "github@browsermedia.com"
Expand Down
10 changes: 7 additions & 3 deletions templates/blank.rb
@@ -1,6 +1,10 @@
run "rm public/index.html"
gem "browser_cms"
rake("db:create")
rake "db:create"
route "map.routes_for_browser_cms"
generate(:browser_cms)
rake("db:migrate")
generate :browser_cms
environment 'SITE_DOMAIN="localhost:3000"', :env => "development"
environment 'SITE_DOMAIN="localhost:3000"', :env => "test"
environment 'SITE_DOMAIN="localhost:3000"', :env => "production"
environment 'config.action_view.cache_template_loading = false', :env => "production"
rake "db:migrate"
12 changes: 8 additions & 4 deletions templates/demo.rb
@@ -1,7 +1,11 @@
run "rm public/index.html"
gem "browser_cms"
rake("db:create")
rake "db:create"
route "map.routes_for_browser_cms"
generate(:browser_cms)
generate(:browser_cms_demo_site)
rake("db:migrate")
generate :browser_cms
environment 'SITE_DOMAIN="localhost:3000"', :env => "development"
environment 'SITE_DOMAIN="localhost:3000"', :env => "test"
environment 'SITE_DOMAIN="localhost:3000"', :env => "production"
environment 'config.action_view.cache_template_loading = false', :env => "production"
generate :browser_cms_demo_site
rake "db:migrate"

0 comments on commit 4a12375

Please sign in to comment.