Running Your Deployment

Once you've decided on your deployment strategy, it's time to run your deployment. This guide will walk you through how to deploy your application using Spin.

"spin deploy"

The most straightforward deployment strategy is to run spin deploy from your local machine. This command will deploy your application to your servers. This is the best option for small projects or if you're just getting started with Spin.

Deploy your application

spin deploy

GitHub Actions

GitHub Actions is a great way to automate your deployments. We have an entire guide on how to configure GitHub Actions to deploy your application to your servers when you push to your repository. This is the best option for larger projects or if you want to automate your deployments.

By default, our GitHub Actions workflow will deploy your application to your servers when you push to your main branch. You can customize this workflow to deploy to different branches or even different servers.

It's as easy as just pushing to GitHub.

Push to GitHub

git push origin main