-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathconfig.rb
52 lines (42 loc) · 1.09 KB
/
config.rb
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
47
48
49
50
51
52
# config.rb
require 'uglifier'
set :css_dir, 'css'
set :js_dir, 'js'
set :images_dir, 'img'
set :partials_dir, 'partial'
set :haml, { :ugly => true, :format => :html5 }
#activate :minify_html
#activate :livereload
#activate :asset_hash
activate :cache_buster
configure :build do
activate :minify_javascript
activate :minify_css
activate :relative_assets
end
#configure :build do
# compass_config do |config|
# config.sass_options = {:debug_info => false}
# config.sass_options = {:line_comments => false}
# end
#end
#activate :deploy do |deploy|
# deploy.method = :ftp
# deploy.host = '75.126.149.8'
# deploy.path = '/home/brandbook/webapps/frontend/proyectos/2brains/'
# deploy.user = 'frontend'
# deploy.password = 'fr0nt3nd!'
#end
# To deploy the build directory to a remote host via rsync:
activate :deploy do |deploy|
deploy.method = :rsync
deploy.host = "deploy.2brains.cl"
deploy.path = "/home/prod/webapps/miti/dist"
deploy.user = "prod"
deploy.clean = true
end
helpers do
def is_page_selected(page)
current_page.url == page ? "current" : ''
end
end