I have a Drupal site with three enviornments:
- dev - vagrant-based dev environment running on VM
- stg - mirrors the production environment. before deploying the code live on the production,
it's deployed on stg to make sure everything works - prod - live site
The version control system is git.
After coding is done, I commit the code to the git repository and push the code to origin master i.e. git commit -m <msg>
and git push origin master
. After that, it's deployed to staging as git push staging master
. For production, it's git push production master
.
A few weeks back, I had to make some code changes directly to the production server. Now, whenever I try to push anything to prod through the normal push cycle, it fails. I can code on dev, push to origin master and staging but not to prod.
When I try to push, I get the following results:
Counting objects: 148, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (85/85), done.
Writing objects: 100% (126/126), 1.20 MiB | 169 KiB/s, done.
Total 126 (delta 52), reused 107 (delta 35)
remote: error: packfile <path-to-packfile> cannot be accessed
remote: error: hook declined to update refs/heads/master To ssh://admin@<site-name>.com/shared/repositories/dlc_drupal.git ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://admin@<sitename>.com/shared/repositories/dlc_drupal.git'
What could be the problem and how could I correct my prod git push?
Any help would be highly appreciated. Also, I might have missed some details as I am not sure if they would be relevant. Please let me know.