-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new file: deploy-an-app-without-pushing-an-empty-commit.md
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Deploy An App Without Pushing An Empty Commit | ||
|
||
The [Vercel CLI](https://vercel.com/docs/cli) allows you to make updated | ||
deployments of an app right from the command line. | ||
|
||
Many providers require you to push a new commit to the main branch to trigger a | ||
deployment. If there are changes, you can trigger a deployment by pushing | ||
these. If there aren't changes, but you want to re-deploy what is already | ||
there, then you have to create an empty commit and push that. | ||
|
||
With the [Vercel CLI](https://vercel.com/docs/platform/deployments#vercel-cli), | ||
you can re-deploy your app without pushing commits. You do this by including | ||
the `--force` flag. | ||
|
||
To re-deploy the preview environment: | ||
|
||
```bash | ||
$ vercel --force | ||
``` | ||
|
||
To re-deploy the production environment: | ||
|
||
```bash | ||
$ vercel --prod --force | ||
``` | ||
|