Comments (10)
Might have to look at doing something like capistrano/ruby does here https://github.com/capistrano/rails/blob/master/lib/capistrano/tasks/set_rails_env.rake
from symfony.
Yes, that would be perfect IMHO
from symfony.
👍
from symfony.
@sandermarechal did you find a workaround for this? // @peterjmit
from symfony.
Following on from the issue and comments the solution I implemented was to add the following to the bottom of deploy.rb:
namespace :deploy do
task :set_symfony_env do
fetch(:default_env).merge!(symfony_env: fetch(:symfony_env))
end
end
Capistrano::DSL.stages.each do |stage|
after stage, 'deploy:set_symfony_env'
end
from symfony.
I am getting:
DEBUG [0230d294] Command: cd /var/www/foodpanda-new/production/va/releases/20140610135412 && ( SYMFONY_ENV=prod /usr/bin/env composer install --no-dev --prefer-dist --no-interaction --quiet --optimize-autoloader )
DEBUG [0230d294] /usr/bin/env: composer
DEBUG [0230d294] : No such file or directory
capistrano (3.2.1, 2.15.5)
capistrano-composer (0.0.4)
capistrano-file-permissions (0.1.0, 0.0.1)
capistrano-symfony (0.1.0)
I am migration from cap 2 to 3. Thanks
from symfony.
Hi @jurgenweber this seems like an issue un-related to this one? You will need composer installed on your machine before using this library (see documentation here https://github.com/capistrano/composer)
from symfony.
Yeah, I did notice that a little while later on. Thanks for confirmation. Sorry.
from symfony.
Are there any updates on when this fix will be merged? I currently cannot find a way to deploy my Symfony application outside of production.
I have the following line in deploy.rb: set :symfony_env, "staging"
The following command is run when the cache:warmup step is reached:
Command: cd /var/www/deploy/releases/20140724205523 && ( SYMFONY_ENV=prod /usr/bin/env php app/console cache:warmup --no-debug )
[InvalidArgumentException]
The file "/var/www/deploy/releases/20140724205523/app/config/config_prod.yml" does not exist.
As you can see, the command is provided the wrong SYMFONY_ENV variable and also no --env=staging variable. Does the symfony_env parameter actually work?
Any insight is appreciated. Thank you!
from symfony.
resolved by #20
from symfony.
Related Issues (20)
- Error task symfony:clear_controllers HOT 2
- NoMethodError: undefined method `symfony_console' HOT 2
- Website unreachable during deploy HOT 3
- Error: `execute' should be wrapped in an `on'
- Task for running (and enforcing passed) tests HOT 3
- v1.0 tasks don't run on Symfony 2.8 HOT 1
- Cache warmup SSH commands being executed multiple times per host HOT 2
- Capistrano roles ignored for symfony_command HOT 1
- Symfony messenger stop workers HOT 1
- Capfile: cannot load such file -- capistrano/symfony HOT 1
- Make :symfony_console_path executable HOT 2
- Task symfony:set_permissions invokes task deploy:set_permissions:* for each server in "release_roles :all"
- Release a stable release? HOT 8
- Symfony 4 directory structure HOT 15
- Symfony Flex?
- Cache warmup error HOT 1
- Uploads linked dirs
- symfony_deploy_roles in place of symfony_roles HOT 2
- exclude folders before deploy from local !?
- PHP Errors not displaying in the log HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from symfony.