Jump to content

Topic on Talk:VisualEditor/Installation on a shared host/Archive 2

Error at step 19, no composer.lock file

6
Summary by Sophivorus

Instructions have been completely updated and tested, this no longer applies.

MGFlow58 (talkcontribs)

I have made sure that composer.lock is in .gitignore, however, when using ( git push heroku master ), i get an error saying the following:

remote: -----> PHP app detected                                                                                                                                                                                                                                                
remote:                                                                                                                                                                                                                                                                        
remote:  !     ERROR: No 'composer.lock' found!                                                                                                                                                                                                                                
remote:  !                                                                                                                                                                                                                                                                     
remote:  !     A 'composer.lock' file was not found in your project, but there                                                                                                                                                                                                 
remote:  !     is a 'composer.json' file with dependencies inside 'require'.                                                                                                                                                                                                   
remote:  !                                                                                                                                                                                                                                                                     
remote:  !     The lock file is required in order to guarantee reliable and                                                                                                                                                                                                    
remote:  !     reproducible installation of dependencies across platforms and                                                                                                                                                                                                  
remote:  !     deploys. You must follow the Composer best practice of having                                                                                                                                                                                                   
remote:  !     your lock file under version control in order to deploy. The                                                                                                                                                                                                    
remote:  !     lock file must not be in your '.gitignore'.                                                                                                                                                                                                                     
remote:  !                                                                                                                                                                                                                                                                     
remote:  !     Please perform the following steps locally on your computer to                                                                                                                                                                                                  
remote:  !     resolve this issue before attempting another deploy:                                                                                                                                                                                                            
remote:  !     1) remove 'composer.lock' from file '.gitignore', if present                                                                                                                                                                                                    
remote:  !     2) if no 'composer.lock' exists, run 'composer update'                                                                                                                                                                                                          
remote:  !     3) stage the lock file changes using 'git add composer.lock'                                                                                                                                                                                                    
remote:  !     4) if you edited '.gitignore', also run 'git add .gitignore'                                                                                                                                                                                                    
remote:  !     5) commit the change using 'git commit'                                                                                                                                                                                                                         
remote:  !                                                                                                                                                                                                                                                                     
remote:  !     Please remember to always keep your 'composer.lock' updated in                                                                                                                                                                                                  
remote:  !     lockstep with 'composer.json' to avoid common problems related                                                                                                                                                                                                  
remote:  !     to dependencies during collaboration and deployment.                                                                                                                                                                                                            
remote:  !                                                                                                                                                                                                                                                                     
remote:  !     Please refer to the Composer documentation for further details:                                                                                                                                                                                                 
remote:  !     https://getcomposer.org/doc/                                                                                                                                                                                                                                    
remote:  !     https://getcomposer.org/doc/01-basic-usage.md                                                                                                                                                                                                                   
remote:               

I've tried for a long time to figure out what I am doing wrong, can anyone please help me? I've made sure to do all steps up to this one (except step 11 and 12 as my site is not https, i use godaddy). Additionally, the only file I have named composer is composer.json, but no composer.lock. Any help would be greatly appreciated!

87.21.243.225 (talkcontribs)

same problem here :(

MGFlow58 (talkcontribs)

I'm kind of upset because it seems like a lot of extensions have trouble on a shared host, with this one it looked like I was actually getting somewhere but i feel the tutorial is outdated

NH35 (talkcontribs)

I generated that file (composer.lock) using composer. Everything was successful but inAPPNAME.herokuapp.com I have error "Forbidden You don't have permission to access / on this server.".

What i changed in original instruction? I removed composer.lock line in config.yaml


My log file https://justpaste(dot)it/63ogi

73.142.232.147 (talkcontribs)

I have the exact same problem. I managed to resolve the issue with "composer.lock", but unfortunately when I load the site, I receive the "Forbidden" error. Any idea?

Br shadow (talkcontribs)