Search code examples
symfonydeploymenthosting

How to deploy symfony rest api project in hosting without third-party applications?


I am trying to deploy symphony api project in hosting.

Until now, all the projects I have done have been pure php, uploading to hosting is simple and everything always works perfectly.

The situation with symfony is tragic and impossible for me, uploading the code just does not work.

I'm really very disappointed with the framework... deploying react, angular is so easy and here it's just ridiculously impossibly hard...

My question is not specific but I'm sure if there is a good answer it will be useful for thousands like me!

Can someone help me with this please? Any tutorial, video etc.

For 3 days I have been searching for information on Google and YouTube from morning to night all day like crazy. I would appreciate it if someone could just send me a link to a blog tutorial or a video that works without third party applications. I am really tired...


Solution

  • the whole problem was in the version of composer, which is 1.0.0 in the hosting, which creates hundreds of errors and it is simply impossible to install the project written on the latest version.

    All I had to do was manually install the latest version of composer on the hosting.

    Then I install the project using the composer phar file php ~/composer.phar install instead of the default one which from the hosting is the oldest version 1.0.0 and bring impossible to fix problems.

    If anyone has a similar problem just check the composer version in the hosting.