I'm new to Symfony, coming from .NET world. Using Symfony (4) documentation, I managed to create simple web site. Now I want to put it to live, but I'm struggling to find any useful information what should I do in order to "pack" everything necessary and deploy it. Indeed, there's page describing deployment (How to Deploy a Symfony Application), but I find it lacking information about:
- what to include/exclude (obviously I don't want to pack
dev
dependencies, and deployingcomposer
files also doesn't seems to make any sense) - what to change (there's
.env
file - containingAPP_ENV
andAPP_SECRET
- where do I use those values?) - my hosting uses folder
www
for public presentation, do I have to change/configure something before renamingpublic
directory just towww
? - do I have to configure
.htaccess
to not route images/css/js trough PHP?
My current project structure is:
+ bin
+ config
+ public
+ css
- index.php
+ src
+ Controller
- Kernel.php
+ templates
+ var
+ vendor
- .env
- composer.json
- composer.lock
- symfony.lock
from Packing and deploying Symfony web site
No comments:
Post a Comment