Skip to content

Commit

Permalink
Omgevingen hernoemen naar acceptance en production t.b.v. Datapunt
Browse files Browse the repository at this point in the history
Amsterdam
  • Loading branch information
maartendekeizer committed Feb 28, 2018
1 parent de530ce commit a418d49
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ Gebruik Apache met mod-php, Apache met PHP-FPM, Nginx met PHP-FPM of IIS. Gebrui
git clone [email protected]:amsterdam/fixxx-schuldhulp.git
cd fixxx-schuldhulp
composer install
php bin/console cache:clear --env=prod
php bin/console cache:clear --env=acceptance
php bin/console cache:clear --env=production

Configueer tenslote een vhost van de webserver. Zie ook de specifieke handleiding per webserver [in de Symfony 4.0 handleiding](http://symfony.com/doc/current/setup/web_server_configuration.html)

Expand Down
2 changes: 1 addition & 1 deletion bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if (!isset($_SERVER['APP_ENV'])) {

$input = new ArgvInput();
$env = $input->getParameterOption(['--env', '-e'], $_SERVER['APP_ENV'] ?? 'dev', true);
$debug = ($_SERVER['APP_DEBUG'] ?? ('prod' !== $env)) && !$input->hasParameterOption('--no-debug', true);
$debug = ($_SERVER['APP_DEBUG'] ?? ('production' !== $env)) && !$input->hasParameterOption('--no-debug', true);

if ($debug) {
umask(0000);
Expand Down
File renamed without changes.
31 changes: 31 additions & 0 deletions config/packages/production/doctrine.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
doctrine:
orm:
metadata_cache_driver:
type: service
id: doctrine.system_cache_provider
query_cache_driver:
type: service
id: doctrine.system_cache_provider
result_cache_driver:
type: service
id: doctrine.result_cache_provider

services:
doctrine.result_cache_provider:
class: Symfony\Component\Cache\DoctrineProvider
public: false
arguments:
- '@doctrine.result_cache_pool'
doctrine.system_cache_provider:
class: Symfony\Component\Cache\DoctrineProvider
public: false
arguments:
- '@doctrine.system_cache_pool'

framework:
cache:
pools:
doctrine.result_cache_pool:
adapter: cache.app
doctrine.system_cache_pool:
adapter: cache.system
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ services:
links:
- database
environment:
- APP_ENV=prod
- APP_ENV=production
- APP_SECRET=secret
- DATABASE_URL=pgsql://schuldhulp:insecure@database:5432/schuldhulp
3 changes: 2 additions & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ echo 'Start docker-entrypoint.sh'
set -u

composer install --no-interaction --no-suggest --prefer-dist
php bin/console cache:clear --env=prod
php bin/console cache:clear --env=production
php bin/console cache:clear --env=acceptance
php bin/console cache:clear --env=dev
chown -R www-data:www-data var

Expand Down
2 changes: 1 addition & 1 deletion public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}

$env = $_SERVER['APP_ENV'] ?? 'dev';
$debug = $_SERVER['APP_DEBUG'] ?? ('prod' !== $env);
$debug = $_SERVER['APP_DEBUG'] ?? ('production' !== $env);

if ($debug) {
umask(0000);
Expand Down

0 comments on commit a418d49

Please sign in to comment.