Commit 764a8f4b authored by Serhii Kotov's avatar Serhii Kotov
Browse files

Deploy fixes and dependencies update resolve #468 #469 #470

* fix linked dirs for backups
* update revision of svg2pdf resolve #468
* server static assets for mounted engines
* create public/stylesheets empty dir
* update Travis.yml config to cache node modules
parent 79da253f
language: ruby
cache: bundler
cache:
bundler: true
directories:
- node_modules
- tmp/cache/assets/test/sprockets
rvm:
- 2.2.1
before_install:
......
......@@ -23,11 +23,11 @@ GIT
GIT
remote: git://github.com/ComPlat/svg2pdf.git
revision: 13c070832a45fd70c60726a5888661ccc57f93cd
revision: 8b207a7e5bb6d1503b0d5da9d3c4dd74d7b6a43a
specs:
svg2pdf (0.2.0)
activesupport
rsvg2
rsvg2 (= 3.0.8)
GIT
remote: git://github.com/cubuslab/openbabel-gem.git
......
......@@ -27,8 +27,9 @@ set :nvm_node, 'v4.4.3'
set :linked_files, fetch(:linked_files, []).push('config/database.yml', 'config/secrets.yml', '.env')
# Default value for linked_dirs is []
set :linked_dirs, fetch(:linked_dirs, []).push('node_modules','log', 'tmp/pids', 'tmp/cache',
'tmp/sockets', 'public/images', 'uploads/attachments', 'backup/deploy_backup')
set :linked_dirs, fetch(:linked_dirs, []).push('node_modules','log', 'tmp/pids',
'tmp/cache', 'tmp/sockets', 'public/images', 'uploads/attachments',
'public/stylesheets', 'backup/deploy_backup', 'backup/weekly_backup')
# Default value for default_env is {}
# set :default_env, { path: "/opt/ruby/bin:$PATH" }
......
......@@ -22,7 +22,9 @@ Rails.application.configure do
# Disable serving static files from the `/public` folder by default since
# Apache or NGINX already handles this.
config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
# config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
# UPDATE we have to enable it for engines with assets
config.serve_static_files = true
# Compress JavaScripts and CSS.
config.assets.js_compressor = :uglifier
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment