-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.rb
55 lines (41 loc) · 1.33 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
53
54
55
require 'lib/despachodepan'
Despachodepan.load
# require "helpers/html_helpers"
# helpers HtmlHelpers
# require "helpers/markdown_helpers"
# helpers MarkdownHelpers
# require "lib/helpers/despachodepan_helpers"
# helpers DespachodepanHelpers
Repo.all('Card').each do |card|
proxy "/#{card.title.parameterize}", "/card.html",
locals: { card: card}, ignore: true
end
Repo.all('SlideImage').each do |slide|
proxy "/thumb/#{slide.id}", "/thumb.html",
locals: { slide: slide}, ignore: true
end
set :css_dir, 'stylesheets'
set :js_dir, 'javascripts'
set :images_dir, 'images'
# Build-specific configuration
configure :build do
# For example, change the Compass output style for deployment
activate :minify_css
# Minify Javascript on build
activate :minify_javascript
# Enable cache buster
activate :asset_hash
# Use relative URLs
# activate :relative_assets
# Or use a different image path
# set :http_prefix, "/Content/images/"
end
activate :deploy do |deploy|
deploy.method = :rsync
deploy.host = 'liki.es'
deploy.path = '/home/deployer/despachodepan.com'
deploy.user = 'deployer' # no default
# deploy.port = 5309 # ssh port, default: 22
# deploy.clean = true # remove orphaned files on remote host, default: false
# deploy.flags = '-rltgoDvzO --no-p --del' # add custom flags, default: -avz
end