Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symfony 2 without SSH access

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...

like image 445
Dan Cearnau Avatar asked Nov 21 '11 09:11

Dan Cearnau


People also ask

How do I Manage my Symfony projects?

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.

How to get started with Symfony CLI tool?

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.

What are the Symfony-build and Symfony-deploy scripts?

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).

What is a typical Symfony application?

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):


1 Answers

Should not be a problem:

  • Create a copy of the system somewhere, ideally with identical DB connection params like the production system.
  • Run all the necessary tasks with the --env=prod parameter, if your DB settings allow it.
  • Clone the created production database to the production system (with phpMyAdmin). You can clone the schema from the production database, run app/console doctrine:schema:update --dump-sql locally and then run the generated SQL on the production server.
  • Copy all the files, excluding the dirs in app/cache and app/log
like image 103
chiborg Avatar answered Oct 06 '22 18:10

chiborg