Reputation: 6471
I have a Git repository on my local computer, that is cloned onto a shared server. On my local computer everything works fine, but on the shared server I have a blank page.
I see all the code in my FTP client and I get the git status:
On branch master
Your branch is up-to-date with 'origin/master'.
On my local computer I have the same message, so the source are up-to-date.
Now the strange thing: On my local computer I can see my website. But on my server it is just a blank page. How is this possible? Could this have something to do with the htaccess? The code should be exactly the same.
Technical information: Local computer is Mac OSX. Shared Server is Linux System. I have installed Symfony framework
Upvotes: 0
Views: 472
Reputation: 2122
You are using Symfony framework, but as it was said in comments on your shared server you don't have Composer to install dependencies.
The Symfony's .gitignore ignores the vendor/
directory because usually the dependencies during the deployment process by executing composer install
.
In your case, if you haven't Composer on your shared server, you can copy/paste your vendor/
directory from your PC onto your server.
Do not forget to copy/paste it again when you update your dependencies.
The easier approach would be to have Composer on your server to execute composer install
each time you push your project onto your server.
Upvotes: 1