Skip to content
Snippets Groups Projects
Unverified Commit 4de20135 authored by Sebastian Castro's avatar Sebastian Castro
Browse files

Ugly fix in localhost to create project using gogocarto.fr api

parent 1ccdd098
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment