Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Added custom assets:install path #362

Merged
merged 1 commit into from

2 participants

@alex88

Added a custom assets:install path for specifying where to dump assets

Fixes #360

@alex88 alex88 Added custom assets:install path
Added a custom assets install path
e30a764
@willdurand
Collaborator

Could you add a test please?

@willdurand
Collaborator

ping @alex88

@alex88

Sorry for the delay, I've no idea in how to test that sorry. Pretty noob in ruby..

@willdurand
Collaborator

Ok, will do then

@alex88

Since from what I've seen you test config on the tests folder but no idea in how to start with a new one sorry.

@willdurand willdurand referenced this pull request from a commit
@willdurand willdurand Add test for #362 798a29d
@willdurand willdurand merged commit e30a764 into everzet:master
@willdurand willdurand referenced this pull request from a commit
@willdurand willdurand Add test for #362 97ed0e0
@willdurand
Collaborator
@alex88

Oh ok, got it now, thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 5, 2013
  1. @alex88

    Added custom assets:install path

    alex88 authored
    Added a custom assets install path
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +1 −0  lib/capifony_symfony2.rb
  2. +1 −1  lib/symfony2/symfony.rb
View
1  lib/capifony_symfony2.rb
@@ -78,6 +78,7 @@ def self.load_into(configuration)
set :assets_install, true
set :assets_symlinks, false
set :assets_relative, false
+ set :assets_install_path, web_path
# Whether to update `assets_version` in `config.yml`
set :update_assets_version, false
View
2  lib/symfony2/symfony.rb
@@ -46,7 +46,7 @@
install_options += " --relative"
end
- run "#{try_sudo} sh -c 'cd #{latest_release} && #{php_bin} #{symfony_console} assets:install #{web_path}#{install_options} --env=#{symfony_env_prod}'"
+ run "#{try_sudo} sh -c 'cd #{latest_release} && #{php_bin} #{symfony_console} assets:install #{assets_install_path}#{install_options} --env=#{symfony_env_prod}'"
capifony_puts_ok
end
end
Something went wrong with that request. Please try again.