I have a developed a small web-app in Symfony 2 and Doctrine 2.
Can i deploy it to a web-host that doesn't give SSH access?
I ask this because i see there are a lot of task that must be done from the terminal, like updating the database schema, creating symlinks for the assets, clearing cache, etc...
To manage your Symfony projects with Platform.sh, you need Git, SSH, and the symfony CLI tool. Go to the Download page for instructions on how to install the Symfony CLI tool on your local machine. To get started with the Symfony CLI tool, run symfony to get some common commands or symfony help to list all available commands.
To get started with the Symfony CLI tool, run symfony to get some common commands or symfony help to list all available commands. Even if you can use the Platform.sh CLI tool, we highly recommend you to use the Symfony CLI tool as it provides a tighter integration with Symfony via specific commands.
If you have a closer look at .platform.app.yaml for a Symfony project, you will notice the calls to symfony-build and symfony-deploy scripts during the build and deploy hooks respectively. These scripts register some environment variables depending on the services you require (names match the one expected by Symfony recipes).
A typical Symfony application begins with three environments: dev (for local development), prod (for production servers) and test (for automated tests ). When running the application, Symfony loads the configuration files in this order (the last files can override the values set in the previous ones):
Should not be a problem:
--env=prod
parameter, if your DB settings allow it.app/console doctrine:schema:update --dump-sql
locally and then run the generated SQL on the production server.app/cache
and app/log
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With