Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 920746be94
Fetching contributors…

Cannot retrieve contributors at this time

50 lines (39 sloc) 1.375 kB
require "bundler/setup"
require "staticmatic"
base_dir = File.expand_path(File.dirname(__FILE__))
ssh_user = "root@trst.ro" # for rsync deployment
remote_cazare = "/srv/www/vhosts/meridian/cazare/site/" # for rsync deployment
remote_pensiune = "/srv/www/vhosts/meridian/pensiune/site/" # for rsync deployment
desc "Runs preview"
task :preview do
sm = StaticMatic::Base.new(base_dir)
sm.run('preview')
end
desc "Builds the site"
task :build => 'styles:clear' do
puts "*** Building the site ***"
sm = StaticMatic::Base.new(base_dir)
sm.run('build')
end
desc "Clears and generates new styles, builds and deploys"
task :deploy_cazare => :build do
puts "*** Deploying the site ***"
system("rsync -e 'ssh -p 22222' -avz --delete site/ #{ssh_user}:#{remote_cazare}")
end
desc "Clears and generates new styles, builds and deploys"
task :deploy_pensiune => :build do
puts "*** Deploying the site ***"
system("rsync -e 'ssh -p 22222' -avz --delete site/ #{ssh_user}:#{remote_pensiune}")
end
namespace :styles do
desc "Clears the styles"
task :clear do
puts "*** Clearing styles ***"
system "rm -Rfv site/stylesheets/screen.css site/stylesheets/ie.css site/stylesheets/print.css"
end
desc "Generates new styles"
task :generate => :clear do
puts "*** Generating styles ***"
system "./.bundle/bin/compass -c src/compass.rb"
end
end
Jump to Line
Something went wrong with that request. Please try again.