jackbrycesmith / laravel-caprover-template

Template to deploy a Laravel app in docker for CapRover
MIT License
127 stars 44 forks source link

Error on entrypoint.sh #12

Closed tm69 closed 3 years ago

tm69 commented 3 years ago

I have this error on deploy and caprover response NGINX 502 Error :/

2020-11-24T21:23:08.109626638Z /entrypoint.sh: line 2: $'\r': command not found 2020-11-24T21:23:08.109652138Z /entrypoint.sh: line 4: $'\r': command not found 2020-11-24T21:23:08.109663539Z 🎬 entrypoint.sh 2020-11-24T21:23:08.276572103Z 2020-11-24T21:23:08.280577312Z 2020-11-24T21:23:08.280620712Z [Symfony\Component\Console\Exception\RuntimeException] 2020-11-24T21:23:08.280624912Z The "--optimize " option does not exist. 2020-11-24T21:23:08.280627912Z 2020-11-24T21:23:08.280630712Z 2020-11-24T21:23:08.280633312Z dump-autoload [--no-scripts] [-o|--optimize] [-a|--classmap-authoritative] [--apcu] [--no-dev] 2020-11-24T21:23:08.280637812Z 2020-11-24T21:23:08.285838523Z /entrypoint.sh: line 6: $'\r': command not found 2020-11-24T21:23:08.286099024Z 🎬 artisan commands 2020-11-24T21:23:08.286635725Z /entrypoint.sh: line 8: $'\r': command not found 2020-11-24T21:23:08.307761171Z 2020-11-24T21:23:08.307775571Z Warning: require(/srv/app/vendor/autoload.php): failed to open stream: No such file or directory in /srv/app/artisan on line 18 2020-11-24T21:23:08.307779171Z 2020-11-24T21:23:08.307781771Z Fatal error: require(): Failed opening required '/srv/app/vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /srv/app/artisan on line 18 2020-11-24T21:23:08.327468414Z 2020-11-24T21:23:08.327508614Z Warning: require(/srv/app/vendor/autoload.php): failed to open stream: No such file or directory in /srv/app/artisan on line 18 2020-11-24T21:23:08.327513114Z 2020-11-24T21:23:08.327515514Z Fatal error: require(): Failed opening required '/srv/app/vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /srv/app/artisan on line 18 2020-11-24T21:23:08.329775519Z /entrypoint.sh: line 11: $'\r': command not found 2020-11-24T21:23:08.329920220Z 🎬 start supervisord 2020-11-24T21:23:08.330173520Z /entrypoint.sh: line 13: $'\r': command not found 2020-11-24T21:23:08.334358729Z time="2020-11-24T21:23:08Z" level=info msg="stop listening"

tm69 commented 3 years ago

the problem is solved, in windows git changes automatically LF for CRLF it fixes changing a global variable core.autocrlf with this command git config --global core.autocrlf input https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#Formatting-and-Whitespace