Now let’s tell Launchdeck where to upload the files. You’ll find more information on how to set up and use build commands in our build commands docs. You can use this step to, for example, compile assets, install dependencies, run tests, and everything in between.Īll files generated using these build commands will be uploaded to your server. The next step allows us to define commands which will be executed in an isolated docker container - this is the build step. All repositories within your account will be retrieved and shown as a list, from which you can now select the one you’d like to use. Once you've signed up for a new Launchdeck account, you can create your first project and link it to your Git account. We offer a free full-featured plan that allows you to deploy one project as often as you’d like! If you’re not already using Git, do yourself a favor and look into it! Git’s main website has some great resources to get you started. When you first start using Launchdeck to improve your deployment process and development workflow, it’s important that you’re already using Git, and have access to an SSH server that you wish to deploy code to. The way this works is by adding an entirely new directory for each new version, to which a symlink from your server’s webroot will be created or updated once you wish to publish this new version.Īn additional advantage of this is that it allows you to instantly roll back to a previous version - with no more than the push of a button - when the new version doesn’t appear to work entirely right. This enabled Launchdeck to publish new versions of your project without any downtime at all. On top of that, these methods don’t allow for “ zero downtime deployments”, or for easily and automatically running build steps such as installing dependencies.Ī major advantage of SSH is that it allows for commands to be executed on your server, including the creation of symlinks. You could, for instance, use an SFTP client, or install git onto your server and run a git command such as pull or fetch to update sources in your repository.īoth methods are relatively quick and simple, but they’re still manual processes requiring you to log into your server. There are several ways of uploading code to your SSH server. In this article, I’ll walk you through how to easily and automatically deploy code from your Git repository to your SSH server with zero downtime.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |