Using BitBucket Pipelines to Deploy onto VPS via SSH Access

前端 未结 2 570
盖世英雄少女心
盖世英雄少女心 2021-01-30 04:22

I have been trying to wrap my head around how to utilise BitBucket\'s Pipelines to auto-deploy my (Laravel) application onto a Vultr Server instance.

I have the followin

2条回答
  •  执念已碎
    2021-01-30 05:13

    The problem with the answer marked as the solution is that the SH process won't exit if any of the commands inside fails.

    This command php artisan route:cache for instance, can fail easily! not to mention the pull!

    And even worse, the SH script will execute the rest of the commands without stop if any fail.

    I can't use any docker command because after each, the CI process stops and I can't figure out how to avoid those commands to not exit the CI process. I'm using the SH but I'll start adding some conditionals based on the exit code of the previous command, so we know if anything went wrong during the deploy.

提交回复
热议问题