Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

fsdolphin's avatar

Typical Deployment Process

Hi,

What is the typical deployment process when deploying using Github or Bitbucket, one way or two way deployiment?

What I'm trying to understand if it is commont to make changes from your server (DigitalOcean) and push the changes or changes need to come from your local to avoid git conflicts?

What is your workflow?

0 likes
3 replies
noeldiaz's avatar

@fsdolphin I develop and test locally, with either a VM or the built in php server. Once I'm pretty sure things work I push to my repository. After that I can pull down on my dev/test server to make sure everything works, or on production to deploy. I don't work on code other than on my local setup and always just push to repository (a Gitlab instance on a hosted server). But I also work alone so your situation might be different.

1 like
spekkionu's avatar
Level 48

Deployment process depends heavily on the app and how much time/money you are willing to spend on automating the deployment process.

For projects where a couple seconds downtime for a deployment isn't an issue writing a small envoy script that:

  • Log into the server
  • Changes to the project directory
  • Runs php artisan down
  • Does a git pull
  • Runs php artisan migrate
  • Clears and caches and runs any other scripts you need it to.
  • Runs php artisan up

This is generally all I need for most of the small apps I work on.

If a very brief downtime is not acceptable for your app then you need something more complicated that basically deploys your new version to a separate directory and swaps symlinks to the new directory rather than updates the app in place. This also makes rollbacks a bit easier/quicker.

This could be something like Capistrano or Rocketeer.

The easy and not very expensive solution is to use https://envoyer.io/

1 like
fsdolphin's avatar

Thank you all for your input, it helps a lot.

Please or to participate in this conversation.