Projekat

Općenito

Profil

Podrška #18282 » demo.rb

Ernad Husremović, 05.09.2009 02:04

 
# Remove the file on both *unix and Windows
if Gem.win_platform?
run "del public\\index.html"
else
run "rm public/index.html"
end

gem "browsercms"
if Gem.win_platform?
puts " rake db:create"
`rake.cmd db:create`
else
rake "db:create"
end
route "map.routes_for_browser_cms"
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"
environment 'config.action_controller.page_cache_directory = RAILS_ROOT + "/public/cache/"', :env => "production"
generate :browser_cms_demo_site
if Gem.win_platform?
puts " rake db:migrate"
`rake.cmd db:migrate --trace`
else
rake "db:migrate --trace"
end
    (1-1/1)