Skip to content

Commit

Permalink
all phing targets that should not be run in production now ask for pe…
Browse files Browse the repository at this point in the history
…rmission if in production environment (#1368)
  • Loading branch information
TomasLudvik authored and vitek-rostislav committed Sep 11, 2019
1 parent 3126182 commit e954f19
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions app/getEnvironment.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

declare(strict_types=1);

namespace Shopsys;

require_once __DIR__ . '/autoload.php';

file_put_contents('php://output', Environment::getEnvironment(true));
2 changes: 1 addition & 1 deletion kubernetes/deployments/webserver-php-fpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ spec:
image: ~
securityContext:
runAsUser: 33
command: ["sh", "-c", "cd /var/www/html && ./phing db-create dirs-create db-demo product-search-recreate-structure product-search-export-products grunt error-pages-generate warmup"]
command: ["sh", "-c", "cd /var/www/html && ./phing -D production.confirm.action=y db-create dirs-create db-demo product-search-recreate-structure product-search-export-products grunt error-pages-generate warmup"]
volumeMounts:
- name: source-codes
mountPath: /var/www/html
Expand Down

0 comments on commit e954f19

Please sign in to comment.