Skip to content
This repository has been archived by the owner on Dec 18, 2020. It is now read-only.

Run in dev environment #831

Open
bdecarne opened this issue Jul 24, 2017 · 3 comments
Open

Run in dev environment #831

bdecarne opened this issue Jul 24, 2017 · 3 comments
Milestone

Comments

@bdecarne
Copy link

bdecarne commented Jul 24, 2017

Q A
Bug? yes
New Feature? no
Sulu Version latest
Browser Version -

Actual Behavior

When i launch the server using :

php bin/console server:start

the default environment is prod, wich is not very convenient for development.

WebServerBundle is using app.php as entrypoint, because there is no app_dev.php.

Expected Behavior

Builtin server must use dev environment

Steps to Reproduce

composer create-project sulu/sulu-minimal my-project -n
bin/adminconsole sulu:build dev
php bin/console server:start

Possible Solutions

create a app_dev.php, like symfony distribution :

<?php

define('SYMFONY_ENV', 'dev');
require_once __DIR__ . '/app.php';
@danrot
Copy link
Contributor

danrot commented Jul 25, 2017

We've already been discussing this. We don't know exactly which solution we will take yet. We have not discussed yet if we only want that behavior for the php internal webserver, or if dev should be the general default.

In the mean time you can use SYMFONY_ENV=dev bin/console server:start to start in dev mode.

/cc @trickreich @chirimoya

@danrot danrot added this to the Release 2.0 milestone Jul 25, 2017
@bdecarne
Copy link
Author

We've already been discussing this

Sorry, i did'nt find it during my search

As a Symfony developer, it is to me the expected behavior for the php internal webserver, not for general default.

@danrot
Copy link
Contributor

danrot commented Jul 25, 2017

The issue just came up this week and we discussed it in person, not on github :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants