forked from everzet/capifony
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
All config in one file, loaded using load:defaults task
- Loading branch information
Showing
4 changed files
with
23 additions
and
20 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 |
---|---|---|
@@ -1,8 +1,13 @@ | ||
load File.expand_path("../symfony/defaults.rb", __FILE__) | ||
# Core tasks for deploying symfony | ||
load File.expand_path("../tasks/symfony.rake", __FILE__) | ||
|
||
# Additional tasks | ||
require "capistrano/symfony/console" | ||
require "capistrano/symfony/composer" | ||
require "capistrano/symfony/assets" | ||
|
||
namespace :load do | ||
task :defaults do | ||
load 'capistrano/symfony/defaults.rb' | ||
This comment has been minimized.
Sorry, something went wrong. |
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1 @@ | ||
# Use AsseticBundle | ||
set :dump_assetic_assets, false | ||
|
||
# Assets install | ||
set :assets_install, false | ||
set :assets_symlinks, false | ||
set :assets_relative, false | ||
set :assets_install_path, fetch(:web_path) | ||
|
||
# Whether to update `assets_version` in `config.yml` | ||
set :update_assets_version, false | ||
|
||
set :normalize_asset_timestamps, true | ||
# Asset folders (that need to be timestamped) | ||
set :asset_children, [fetch(:web_path) + "/css", fetch(:web_path) + "/images", fetch(:web_path) + "/js"] | ||
|
||
load File.expand_path("../../tasks/assets.rake", __FILE__) |
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 |
---|---|---|
@@ -1,4 +1 @@ | ||
# Symfony console bin | ||
set :symfony_console, fetch(:app_path) + "/console" | ||
|
||
load File.expand_path("../../tasks/symfony_console.rake", __FILE__) |
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
I have move all config settings into one file as @nifr suggested - we probably want to reduce the number of configuration values anyways (there are still many).
The
load:defaults
tasks seems to be the proper way to load the settings in