FUCK OFF JUMMIT
This commit is contained in:
parent
a7df2a7a26
commit
515ca84842
|
@ -4,7 +4,9 @@
|
|||
:javascript
|
||||
!window.jQuery && document.write(unescape('%3Cscript src="/javascripts/jquery.min.js"%3E%3C/script%3E'))
|
||||
|
||||
= include_javascripts :application
|
||||
-#= include_javascripts :application
|
||||
|
||||
= javascript_include_tag "jrails", "application", "drop_down_menu"
|
||||
|
||||
-# Append your own using content_for :javascripts
|
||||
= yield :javascripts
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
= include_stylesheets :application
|
||||
-#= include_stylesheets :application
|
||||
|
||||
= stylesheet_link_tag "web-app-theme/base.css", "web-app-theme/themes/default/style.css", "web-app-theme/override.css", "git/style.css"
|
||||
|
||||
= yield :stylesheets
|
|
@ -2,7 +2,9 @@
|
|||
%html
|
||||
%head
|
||||
%title= t("layout.global_header")
|
||||
= include_stylesheets :sessions
|
||||
-#= include_stylesheets :sessions
|
||||
= stylesheet_link_tag "web-app-theme/base.css", "web-app-theme/themes/default/style.css", "web-app-theme/override.css"
|
||||
|
||||
= csrf_meta_tag
|
||||
%body
|
||||
#container
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
javascripts:
|
||||
application:
|
||||
- public/javascripts/rails.js
|
||||
- public/javascripts/application.js
|
||||
- public/javascripts/drop_down_menu.js
|
||||
|
||||
|
|
|
@ -60,21 +60,21 @@ namespace :deploy do
|
|||
run "cd #{deploy_to}/current ; pkill unicorn; sleep 0.5; pkill -9 unicorn; sleep 0.5 ; unicorn_rails -c config/unicorn.rb -E production -D "
|
||||
end
|
||||
|
||||
desc 'Bundle and minify the JS and CSS files'
|
||||
task :build_assets, :roles => :app do
|
||||
root_path = File.expand_path(File.dirname(__FILE__) + '/..')
|
||||
assets_path = "#{root_path}/public/assets"
|
||||
envs = "RAILS_ENV=production"
|
||||
|
||||
# Precaching assets
|
||||
run_locally "bash -c '#{envs} jammit'"
|
||||
|
||||
# Uploading prechached assets
|
||||
top.upload assets_path, "#{current_release}/public", :via => :scp, :recursive => true
|
||||
end
|
||||
# desc 'Bundle and minify the JS and CSS files'
|
||||
# task :build_assets, :roles => :app do
|
||||
# root_path = File.expand_path(File.dirname(__FILE__) + '/..')
|
||||
# assets_path = "#{root_path}/public/assets"
|
||||
# envs = "RAILS_ENV=production"
|
||||
#
|
||||
# # Precaching assets
|
||||
# run_locally "bash -c '#{envs} jammit'"
|
||||
#
|
||||
# # Uploading prechached assets
|
||||
# top.upload assets_path, "#{current_release}/public", :via => :scp, :recursive => true
|
||||
# end
|
||||
|
||||
after "deploy:update_code", :roles => :web do
|
||||
build_assets
|
||||
# build_assets
|
||||
symlink_config_files
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue