Sha256: ced2825be93a78dba88a08cea549568111ab0cb748762b01dc39beee0b89969d

Contents?: true

Size: 428 Bytes

Versions: 1

Compression:

Stored size: 428 Bytes

Contents

task :server do
	system('puma')
end

task :deploy do
	$stderr.puts "Updating permissions..."
	sh("chmod -Rf ug+rwX .")
	sh("chown -Rf http:http .")
	
	$stderr.puts "Updating site #{Dir.pwd} as #{`whoami`.chomp}..."
	sh("sudo -u http git checkout -f")
	sh("sudo -u http git submodule update -i")
	sh("sudo -u http bundle install --deployment")
	
	$stderr.puts "Restarting server..."
	sh("sudo -u http touch tmp/restart.txt")
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
utopia-1.0.4 setup/Rakefile