This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# remove all unused environments from applicationюньд and generate hash | |
ruby -e 'require "yaml"; puts YAML.load(File.read("config/application.yml"))' | |
# run script to create yml file | |
application_yml='{"test"=>{"protocol"=>"https", "host"=>"example.com"}}' ruby -e 'require "yaml"; File.open("config/application.yml", "w") {|f| f.write(eval(ENV["application_yml"]).to_yaml) }' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# lib/capistrano/tasks/assets.rake | |
Rake::Task['deploy:assets:precompile'].clear | |
namespace :deploy do | |
namespace :assets do | |
desc 'Precompile assets locally and then rsync to remote servers' | |
task :precompile do | |
local_manifest_path = %x{ls public/assets/manifest*}.strip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//conflict with ClientSideValidations | |
//this.$input.attr('name', this.name) |
NewerOlder