This repository was archived by the owner on Apr 3, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.rb
More file actions
52 lines (41 loc) · 1.27 KB
/
config.rb
File metadata and controls
52 lines (41 loc) · 1.27 KB
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
set :css_dir, 'stylesheets'
set :js_dir, 'javascripts'
set :images_dir, 'images'
set :partials_dir, 'partials'
activate :directory_indexes
activate :meta_tags
activate :sprockets
set :url_root, 'https://thinkbots.io'
activate :search_engine_sitemap, exclude_attr: 'hidden',
default_priority: 0.5,
default_change_frequency: 'monthly'
configure :development do
activate :livereload
end
after_configuration do
@bower_config = JSON.parse(IO.read("#{root}/.bowerrc"))
@bower_assets_path = File.join root.to_s, @bower_config['directory']
sprockets.append_path @bower_assets_path
end
# Build-specific configuration
configure :build do
ignore 'vendors/*'
# For example, change the Compass output style for deployment
activate :minify_css
# Minify Javascript on build
activate :minify_javascript
# Minify HTML
activate :minify_html
# Enable cache buster
activate :asset_hash
# Use relative URLs
# activate :relative_assets
end
activate :deploy do |deploy|
deploy.deploy_method = :rsync
deploy.host = 'deploy@thinkbots.io'
deploy.path = '/var/www/html/thinkbots'
# deploy.user = 'deploy'
deploy.build_before = true
deploy.clean = true
end