Deploy
Deploy an app¶
To deploy an app, run the following command:
edge deploy
- Deploy from a Git repo
- Deploy from a local directory
- Deploy a docker image hosted on DockerHub or Github container registry (gcr)
To learn more about the two (2) different options, check here.
This command starts a build process. The source code is either cloned from the specified git repo or from the local directory the command is run in and turned into a build artifact. The build artifact is then deployed on a runner. A Simplifyd vanity URL is associated with your deployed app so that you can view it in a browser. Note that deploying an app consumes resources that you would be charged for. Listing your apps shows the status of the app and the Simplifyd vanity URL if the app has been deployed.
Every app is deployed into an environment. Out of the box, Simplifyd Cloud provides the following three (3) deployment environments:
- Production
- Preview
- Staging
If no environment is specified when the deploy command is run, the preview
environment is assumed.
To speciy an environment to deploy your app to add the following flags to the deploy command:
for production:
edge deploy -e production
edge deploy --environment production
for preview:
edge deploy -e preview
edge deploy --environment preview
for staging:
edge deploy -e staging
edge deploy --environment staging
List all apps¶
You can list all apps by running the following command:
edge get apps
Update environment variables of app¶
To update the environment variables of an app, run the following command:
edge set envs -e production < env.sample
env.sample
file and configures the environment the app is deployed into with them. If no environment is specified when the command is run, the preview
environment is assumed.
Note that this is a replace operation not a modify operation. The current environment variables would be replaced entirely by the new ones specified with this command.
Add custom domains¶
To add a custom domain to an already deployed app, run the following command:
edge add domains
Undeploy app¶
To undeploy an app, run the following command:
edge undeploy
If no environment is specified when the undeploy command is run, the preview
environment is assumed.
To speciy an environment to undeploy your app from, add the following flags to the undeploy command:
for production:
edge undeploy -e production
edge undeploy --environment production
for preview:
edge undeploy -e preview
edge undeploy --environment preview
for staging:
edge undeploy -e staging
edge undeploy --environment staging
Delete app¶
To completely delete an app, run the following command:
edge destroy