Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dbp-relay-server-template
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
digital blueprint
Relay API Gateway
dbp-relay-server-template
Commits
aab252a3
Commit
aab252a3
authored
3 years ago
by
Reiter, Christoph
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused API_DEPLOYMENT_ENV
While it might be useful for later stages in development, let's keep this simple
parent
13799fa2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#52739
passed
3 years ago
Stage: test
Stage: deploy
Stage: e2e
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci/deploy.php
+0
-2
0 additions, 2 deletions
.gitlab-ci/deploy.php
src/Kernel.php
+1
-5
1 addition, 5 deletions
src/Kernel.php
with
1 addition
and
7 deletions
.gitlab-ci/deploy.php
+
0
−
2
View file @
aab252a3
...
...
@@ -35,7 +35,6 @@ host('development')
->
set
(
'shared_dirs'
,
[
'var/log'
,
'var/sessions'
])
->
set
(
'APP_ENV'
,
'prod'
)
->
set
(
'APP_DEBUG'
,
'0'
)
->
set
(
'API_DEPLOYMENT_ENV'
,
'development'
)
->
set
(
'KEYCLOAK_SERVER_URL'
,
'https://auth-dev.tugraz.at/auth'
)
->
set
(
'KEYCLOAK_CLIENT_ID'
,
'auth-dev-mw-dev'
)
->
set
(
'KEYCLOAK_FRONTEND_CLIENT_ID'
,
'auth-dev-mw-frontend'
)
...
...
@@ -52,7 +51,6 @@ task('build-custom', function () {
'KEYCLOAK_CLIENT_SECRET'
=>
getenv
(
'KEYCLOAK_CLIENT_SECRET'
),
'APP_ENV'
=>
$APP_ENV
,
'APP_DEBUG'
=>
get
(
'APP_DEBUG'
),
'API_DEPLOYMENT_ENV'
=>
get
(
'API_DEPLOYMENT_ENV'
),
'KEYCLOAK_SERVER_URL'
=>
get
(
'KEYCLOAK_SERVER_URL'
),
'KEYCLOAK_CLIENT_ID'
=>
get
(
'KEYCLOAK_CLIENT_ID'
),
'KEYCLOAK_FRONTEND_CLIENT_ID'
=>
get
(
'KEYCLOAK_FRONTEND_CLIENT_ID'
),
...
...
This diff is collapsed.
Click to expand it.
src/Kernel.php
+
1
−
5
View file @
aab252a3
...
...
@@ -15,11 +15,7 @@ class Kernel extends BaseKernel
protected
function
configureContainer
(
ContainerConfigurator
$container
):
void
{
// Ignore all errors in case we are not local/development. We disable some
// bundles in demo/prod which leads to unused config, which symfony fails over.
$ignoreErrors
=
!
in_array
(
$_ENV
[
'API_DEPLOYMENT_ENV'
],
[
'local'
,
'development'
],
true
);
$container
->
import
(
'../config/{packages}/*.yaml'
,
null
,
$ignoreErrors
);
$container
->
import
(
'../config/{packages}/*.yaml'
);
$container
->
import
(
'../config/{packages}/'
.
$this
->
environment
.
'/*.yaml'
);
if
(
is_file
(
\dirname
(
__DIR__
)
.
'/config/services.yaml'
))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment