Skip to content
This repository was archived by the owner on Nov 14, 2019. It is now read-only.

Use 'server:start' instead of 'server:run' when possible #284

Closed
wants to merge 3 commits into from

Conversation

javiereguiluz
Copy link
Member

server:start is a better option ... but it's not always possible to run it.

@lyrixx
Copy link
Member

lyrixx commented Oct 10, 2016

Should be deal with Symfony Version also ? because this command does not exist in older SF version.

@javiereguiluz
Copy link
Member Author

@lyrixx you are right! I've improved the condition to check that we're using Sf 2.6.0 or higher. Thanks!

@@ -145,11 +145,13 @@ private function displayInstallationResult()
));
}

$serverRunCommand = version_compare($this->version, '2.6.0', '>=') && extension_loaded('pcntl') ? 'server:start' : 'server:run';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this for the demo application?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know why should it be different for the demo app 😕

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You cannot select a version of the demo application, can you? And the one that is going to be installed is using Symfony 3 already, isn't it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are so right!! I'm sorry for this mistake. It's now fixed. Thanks!

@@ -256,14 +256,15 @@ protected function displayInstallationResult()
}

$consoleDir = ($this->isSymfony3() ? 'bin' : 'app');
$serverRunCommand = version_compare($this->version, '2.6.0', '>=') && extension_loaded('pcntl') ? 'server:start' : 'server:run';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You also need to check for HHVM.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that we should care about HHVM anymore. "Nobody" is using it.

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

Successfully merging this pull request may close these issues.

3 participants