Guillermo Gutiérrez
Guillermo Gutiérrez

Reputation: 17789

Deploy full Symfony2 app with composer

Is there a way to setup a composer.json file in order to deploy a full Symfony 2.3 app?

Suppose I have the app in the git repo https://[email protected]/myrepo/sfwebapp.git

Upvotes: 0

Views: 117

Answers (1)

Jovan Perovic
Jovan Perovic

Reputation: 20193

As far as I know, composer is dependency manager, not deployment manager. Sure, you could:

  1. Pull Git repo
  2. Run composer --install (this is basically the essential step)
  3. Warm up cache
  4. Symlink resources
  5. Install assets
  6. ...
  7. PROFIT

BUT, You would need to manually:

  • Check/perform initial directory structure setup
  • Keep track of old deployments
  • ...

So, bottom line, you could achieve it but it would be like reinventing the wheel.

Upvotes: 3

Related Questions