-
-
Save immutef/6736993 to your computer and use it in GitHub Desktop.
Symfony & Foreman
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SYMFONY__DATABASE_DRIVER="pdo_mysql" | |
SYMFONY__DATABASE_HOST="127.0.0.1" | |
SYMFONY__DATABASE_PORT=3306 | |
SYMFONY__DATABASE_NAME="symfony" | |
SYMFONY__DATABASE_USER="root" | |
SYMFONY__DATABASE_PASSWORD="" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
concurrency: web=1 | |
env: .env | |
procfile: Procfile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PORT?=5000 | |
FOREMAN=foreman run | |
SYMFONY=$(FOREMAN) php app/console | |
.PHONY: server | |
server: | |
foreman start -p $(PORT) | |
symfony: | |
$(SYMFONY) $(filter-out $@,$(MAKECMDGOALS)) | |
%: | |
@exit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web: php app/console server:run 127.0.0.1:$PORT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage
Benefits
app/config/parameters.yml
could be left outmake
instruction to rule them all