-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
48 lines (36 loc) · 1.48 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# -*- mode: ruby -*-
require '/opt/lisp/ADWCodeBase/misc/publish_lisp.rb'
#these will probably set for every application.
#What's the name of the app, will be used as a cname essentially.
set :application, "lisp-search.acceleration.net"
set :liveserver, "true"
#the server we are sshing to to make this happen.
set :domain, "root@publispweb04"
#the path on the server to deploy to.
set :deploy_to, Proc.new { "/var/www/lisp-search/#{application}" }
#Folders that are shared among every release (e.g. persistent upload folders)
set :share_folders, ["doc-index"]
#Folders from the project root that should be uploaded with every publish
set :copy_folders, ["bin", "www", "etc"]
#Folders int he published root that should be exposed through apache to the web.
set :web_folders, ["www"]
set :extra_symlinks, [["/var/www/lisp-search/lisp-search.acceleration.net/shared/doc-index/html/", "www/html"],]
set :a2mods, []
set :erb_files, ['etc/nginx.conf.erb']
#the port the lisp application should listen on
set :port, 53622
desc "setup the live publish.".cleanup
task :live => ['lisp:clean'] do
set :application, "lisp-search.acceleration.net"
set :liveserver, "true"
end
### USE Upstart instead of init.d
namespace :lisp do
desc "zip the doc index into the www folder".cleanup
task :do_zips do
system("rm www/doc-index.tar.gz")
system("tar -zcf www/doc-index.tar.gz doc-index")
end
Rake::Task['lisp:upload_new_release'].prerequisites.push('lisp:do_zips')
end
### Make a zip of the docs