Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GoGoCarto
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pixel Humain
GoGoCarto
Commits
4de20135
Unverified
Commit
4de20135
authored
5 years ago
by
Sebastian Castro
Browse files
Options
Downloads
Patches
Plain Diff
Ugly fix in localhost to create project using gogocarto.fr api
parent
1ccdd098
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Biopen/SaasBundle/Controller/ProjectController.php
+1
-1
1 addition, 1 deletion
src/Biopen/SaasBundle/Controller/ProjectController.php
with
1 addition
and
1 deletion
src/Biopen/SaasBundle/Controller/ProjectController.php
+
1
−
1
View file @
4de20135
...
...
@@ -85,7 +85,7 @@ class ProjectController extends AbstractSaasController
// Clone the root configuration into the new project
// Due to conflicts between ODM, we get the Configuration froma Json API, and convert it to an object
$baseUrl
=
$this
->
getParameter
(
'base_url'
);
if
(
$baseUrl
==
'saas.localhost'
)
$baseUrl
=
"
127.0.0.1
"
;
# Fixs for docker in localhost
if
(
$baseUrl
==
'saas.localhost'
)
$baseUrl
=
"
gogocarto.fr
"
;
# Fixs for docker in localhost
$configUrl
=
'http://'
.
$baseUrl
.
$this
->
generateUrl
(
'biopen_api_configuration'
);
$rootConfigToCopy
=
json_decode
(
file_get_contents
(
$configUrl
));
$rootConfigToCopy
->
appName
=
$project
->
getName
();
...
...
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