Déployer une application Symfony sur Koyeb — Vous avez dit base de données ?

Sommaire

Pré-requis

Préparer la base de données

Préparer l’application

postgresql://_username_:_password_@pgsqlk:5432/sf_koyeb?serverVersion=9.6&charset=utf8
"scripts": {
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd",
"requirements-checker": "script",
"doctrine:database:create --if-not-exists": "symfony-cmd"
},
"post-install-cmd": [
"@auto-scripts"
],
"post-update-cmd": [
"@auto-scripts"
]
},

Déployer l’application

"scripts": {
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd",
"requirements-checker": "script",
"doctrine:database:create --if-not-exists": "symfony-cmd",
"doctrine:migrations:migrate --no-interaction": "symfony-cmd"
},
"post-install-cmd": [
"@auto-scripts"
],
"post-update-cmd": [
"@auto-scripts"
]
},

--

--

--

PHP developer @SensioLabs, Symfony addict (3, 4, 5 & 6 certified!)

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Guillaume Loulier

Guillaume Loulier

PHP developer @SensioLabs, Symfony addict (3, 4, 5 & 6 certified!)

More from Medium

Tutorial: Docker PHP Development setup for the generation of TikTok attention span developers

Example Dockerfile

Serializing data in PHP II: A simple primer on database interactions

Improve your application with domain-rich models 📝

A man titled “the developer” looks back at a nice girl titled “anemic entities”. His girlfriend he’s holding by hand titled “rich domain objects” looks frowned at him.

A simple PHP site (4/?)— Routing