I have a problem with assetic:dump
. I use combination css/less files and js/coffeescript files. I need run assetic:dump
than before cap deploy
is performed, because a target server has not installed node js and coffeescript. If I use set :dump_assetic_assets, true
in my deploy.rb, the capifony run assetic:dump after deploy on target server. It throws error during compiling coffeescript.
I don't know how to solve this problem. I think It was mistake to choose Symfony 2 for a my project. All develop are some problems. I thought that deploy is base thing, but It is big the problem in Symfony 2.
#1 UPDATE
set :application, "project"
set :domain, "10.0.0.61"
set :deploy_to, "/var/www/html/project"
set :app_path, "app"
set :user, "kunesd"
#ssh_options[:forward_agent] = true
#ssh_options[:port] = "22"
set :branch, "master"
# set :symfony_env_prod, "dev"
set :scm, :git
set :repository, "d:\\Prace\\Project\\web\\os-project\\"
set :deploy_via, :copy
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `subversion`, `mercurial`, `perforce`, or `none`
set :model_manager, "doctrine"
# Or: `propel`
role :web, domain # Your HTTP server, Apache/etc
role :app, domain, :primary => true # This may be the same as your `Web` server
# Composer settings
# set :use_composer, true
#set :use_composer_tmp, true
# set :update_vendors, false
#set :vendors_mode, "install"
# General settings
#set :shared_files, ["app/config/parameters.yml"]
#set :shared_children, [app_path + "/logs", web_path + "/uploads"]
set :keep_releases, 3
set :use_sudo, false
#set :writable_dirs, [app_path + "/logs", app_path + "/cache", web_path + "/uploads"]
#set :webserver_user, "www-data"
#set :permission_method, :acl
#set :use_set_permissions, true
# Be more verbose by uncommenting the following line
logger.level = Logger::TRACE
Thank you for your answers.