2

I have developed a symfony application and it's done. It's been a couple of days and I can't figure out how to deploy this into a real apache server, when I copy it to the public_html it doesn't work assets don't load properly. Can some one give me a step by step description of how to deploy it so that when I navgiate to example.com url I see my symfony application. Thank you

2
  • Have you read the doc? symfony.com/doc/current/cookbook/deployment-tools.html Commented Nov 29, 2013 at 9:33
  • poorly configured config file ? can you provide some more details as of steps you followed in deploying?\ Commented Nov 29, 2013 at 10:00

2 Answers 2

3

If you try to deploy your application on a server, you have to configure apache. The best way its to make a virtual host.

Here the documentation:

http://httpd.apache.org/docs/current/en/vhosts/examples.html

http://symfony.com/doc/current/cookbook/configuration/web_server_configuration.html

Sign up to request clarification or add additional context in comments.

Comments

3

I would suggest using Capifony which provides a specialized set of tools on top of Capistrano, tailored specifically to symfony and Symfony2 projects. (according to the documentation)

The advantages of using capifony are,

  • deploying is as simple as running cap deploy from your project root directory.
  • It stores multiple releases.
  • It allows you to use SCM(s) to pull your application code down to the server.
  • You can configure it to run any batch command during the deployment.
  • It performs a transactional-like deployment process (if any step fails, the deployment is rolled back and the current directory points to your last release)

You'll also need to troll through this part of the documentation to figure out how to get your application running under Apache.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.