-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from capistrano/next
1.0.0.rc1 - Symfony 3 directory structure
- Loading branch information
Showing
9 changed files
with
223 additions
and
160 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Capistrano Symfony 1.x Changelog | ||
|
||
|
||
## `1.0.0.rc1` | ||
|
||
https://github.com/capistrano/symfony/compare/0.4.0...1.0.0.rc1 | ||
|
||
* Use file permissions gem v1 | ||
* Symfony 3 directory structure is on by default | ||
* Remove `use_set_permission` variable | ||
* Remove `web/uploads` as a default linked directory | ||
* Remove support for Assetic (see: https://github.com/symfony/symfony-standard/pull/860) | ||
* Support SensioLabsDistributionBundle 5 (#49) | ||
* Support Symfony 3 directory structure (#31) | ||
* `build_bootstrap_path` is now a DSL method | ||
* `symfony_console` is now a DSL method (use instead of `invoke "symfony:console"`) | ||
* Paths DSL file has been moved to `lib/capistrano/dsl/symfony.rb` | ||
* Deprecated `symfony:command` task has been removed | ||
* `webserver_user` variable has been removed (#40) | ||
* Various typo fixes | ||
|
||
### Contributors | ||
|
||
Thanks to everyone who has filed an issue or submitted a fix | ||
|
||
* @kriswallsmith | ||
* @zaerl | ||
* @sandermarechal | ||
* @pborreli | ||
* @wideawake | ||
* @issei-m | ||
* @alafon |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,11 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | |
|
||
Gem::Specification.new do |gem| | ||
gem.name = "capistrano-symfony" | ||
gem.version = '0.4.0' | ||
gem.version = '1.0.0.rc1' | ||
gem.authors = ["Peter Mitchell"] | ||
gem.email = ["[email protected]"] | ||
gem.description = %q{Symfony specific Capistrano tasks} | ||
gem.summary = %q{Capistrano Symfony - Easy deployment of Symfony 2 apps with Ruby over SSH} | ||
gem.summary = %q{Capistrano Symfony - Easy deployment of Symfony 2 & 3 apps with Ruby over SSH} | ||
gem.homepage = "http://github.com/capistrano/capistrano-symfony" | ||
|
||
gem.files = `git ls-files`.split($/) | ||
|
@@ -31,5 +31,5 @@ eos | |
|
||
gem.add_dependency 'capistrano', '~> 3.1' | ||
gem.add_dependency 'capistrano-composer', '~> 0.0.3' | ||
gem.add_dependency 'capistrano-file-permissions', '~> 0.1.0' | ||
gem.add_dependency 'capistrano-file-permissions', '~> 1.0' | ||
end |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
module Capistrano | ||
module DSL | ||
module Symfony | ||
|
||
def symfony_app_path | ||
release_path.join(fetch(:app_path)) | ||
end | ||
|
||
def symfony_web_path | ||
release_path.join(fetch(:web_path)) | ||
end | ||
|
||
def symfony_bin_path | ||
release_path.join(fetch(:bin_path)) | ||
end | ||
|
||
def symfony_var_path | ||
release_path.join(fetch(:var_path)) | ||
end | ||
|
||
def symfony_log_path | ||
release_path.join(fetch(:log_path)) | ||
end | ||
|
||
def symfony_cache_path | ||
release_path.join(fetch(:cache_path)) | ||
end | ||
|
||
def symfony_config_path | ||
release_path.join(fetch(:app_config_path)) | ||
end | ||
|
||
def symfony_console_path | ||
release_path.join(fetch(:symfony_console_path)) | ||
end | ||
|
||
def symfony_vendor_path | ||
release_path.join('vendor') | ||
end | ||
|
||
def build_bootstrap_path | ||
bootstrap_path = symfony_vendor_path.join("sensio/distribution-bundle") | ||
|
||
if fetch(:sensio_distribution_version).to_i <= 4 | ||
bootstrap_path = bootstrap_path.join("Sensio/Bundle/DistributionBundle") | ||
end | ||
|
||
bootstrap_path.join("Resources/bin/build_bootstrap.php") | ||
end | ||
|
||
def symfony_console(command, params = '') | ||
execute :php, symfony_console_path, command, params, fetch(:symfony_console_flags) | ||
end | ||
|
||
end | ||
end | ||
end |
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
Oops, something went wrong.