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!