Skip to content

Commit

Permalink
Merge pull request #168 from loic425/features/dump-env
Browse files Browse the repository at this point in the history
Dump env prod
  • Loading branch information
loic425 committed Mar 28, 2019
2 parents 3bb68cb + e6e7b5b commit c6c05a8
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 15 deletions.
15 changes: 13 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# This file is a "template" of which env vars needs to be defined in your configuration or in an .env file
# Set variables here that may be different on each deployment target of the app, e.g. development, staging, production.
# In all environments, the following files are loaded if they exist,
# the later taking precedence over the former:
#
# * .env contains default values for the environment variables needed by the app
# * .env.local uncommitted file with local overrides
# * .env.$APP_ENV committed environment-specific defaults
# * .env.$APP_ENV.local uncommitted environment-specific overrides
#
# Real environment variables win over .env files.
#
# DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES.
#
# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2).
# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration

###> symfony/framework-bundle ###
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"sylius/ui-bundle": "^1.3",
"sylius/user-bundle": "^1.3",
"symfony/dotenv": "^4.2",
"symfony/flex": "^1.1",
"symfony/flex": "^1.2",
"symfony/monolog-bundle": "^3.3",
"symfony/proxy-manager-bridge": "^4.2",
"symfony/swiftmailer-bundle": "^3.0",
Expand Down
22 changes: 12 additions & 10 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions etc/capistrano/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@
after 'deploy:updated', :build_assets do
on roles(:web) do
puts "Build assets"
execute "cd #{release_path}/assets/backend && yarn install && GULP_ENV=prod yarn run gulp"
execute "cd #{release_path}/assets/frontend && yarn install && GULP_ENV=prod yarn run gulp"
execute "cd #{release_path} && yarn install && GULP_ENV=prod yarn run gulp"
execute "cd #{release_path} && composer dump-env prod"
end
end

Expand Down

0 comments on commit c6c05a8

Please sign in to comment.