Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
80 lines (65 sloc) 1.98 KB
run 'touch tmp/.gitignore log/.gitignore vendor/.gitignore'
run 'rm public/index.html'
git :init
git :add => '.'
git :commit => '-am "Rails application generated"'
gem 'tokak_engine'
gem 'espresso'
gem 'sugar'
gem 'searchlogic'
gem 'inherited_resources'
gem 'formtastic'
gem 'will_paginate'
gem 'haml'
gem 'russian'
git :add => '.'
git :commit => '-am "Gem dependencies declared"'
file 'app/views/layouts/application.html.haml', <<-FILE
!!! HTML5
%meta(http-equiv="Content-type" content="text/html; charset=UTF-8")
%title= [page_title, t('application.title')].compact * '. '
%h1.b_logo= t('application.title')
- #%ul= main_navigation
= yield
%p.b_copyrights= t('application.copyrights')
git :add => '.'
git :commit => '-am "HAML, SASS and Blueprint through Compass"'
plugin 'irs_process_scripts', :git => 'git://'
run 'capify .'
file 'config/deploy.rb', %q{
set :application, 'application_name_here'
set :user, 'desmix'
set :domain, ''
set :scm, :git
set :repository, "#{user}@#{domain}:repos/#{application}.git"
set :deploy_to, "/home/#{user}/apps/#{application}"
set :deploy_via, :remote_cache
set :use_sudo, false
set :checkout, 'export'
server domain, :app, :web, :db, :primary => true
git :add => '.'
git :commit => '-am "Plugins for deploying"'
# FastCGI Dispatchers and Apache Magic
run 'rake rails:update:generate_dispatchers'
file 'public/.htaccess', <<-FILE
AddHandler fastcgi-script .fcgi
AddHandler cgi-script .cgi
Options +FollowSymLinks +ExecCGI
RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
ErrorDocument 500 "<h2>Application error</h2>Rails application failed to start properly"
git :add => '.'
git :commit => '-am "FastCGI Dispatchers and Apache Magic"'
Something went wrong with that request. Please try again.