![]() However, Deploy doesn't require that you use git (or any version control for that matter). Mentionsĭeploy is almost identical to DPLOY, which was in turn inspired by dandelion. So, with the above configuration, running deploy would upload to staging by default. If you don't specify an environment, it's assumed that the first environment in deploy.yml should be used. You can deploy them by setting the environment(s) that you want to upload to: deploy staging production You can create as many different deploy locations as you'd like by adding them to the deploy.yml file. Individual files: exclude: ĭirectories: exclude: įile types: exclude: Deploying to multiple servers/locations You can target files, directories and file types. Setting this is highly recommended! excludeĮxclude files that you don't want on your server. If you don't set anything, your files will be uploaded to the user root of your server. The remote folder where your files will be uploaded. If you don't set anything, the entire folder of your project will be uploaded. The local folder that you want to upload to the server. Whether or not to run the uploads verbosely. Whether or not to delete files on the server that aren't present locally. This only needs to be set if your key isn't one of the following: ~/.ssh/id_rsa If neither SSH keys nor pass are set, a prompt will be given. ![]() If SSH keys aren't available, then the pass option will be used. If no username is set, your computer account username will be used. The port that the connection should happen over user The server that the files should be deployed to. Will output a list of all commands ConfigĬonfiguration options are specified in a YAML file called deploy.yml created by running deploy install in your project directory.īelow is a list of all available configuration options. Keep in mind that this is a global setting and will be applied to all deployments. By default they are named deploy.yml, but this can be changed to names such as. Will change the name of deployment configuration files. Or to multiple servers, like this: deploy dev staging production deploy config NAME This can be used to deploy to a single server, like this: deploy production Will deploy to the environment(s) listed in the command. ![]() Will create an template deploy.yml file in the current directory. Once your deploy.yml is set up, simply deploy by running: deploy Commands deploy install This will create a deploy.yml file that controls how the deployment should take place.įill in your server details. Once you've installed the gem, just navigate to your project directory and run: deploy install To install just run: gem install rsync - deploy Deploy is an rsync deployment tool built using RubyĮssentially acts as a wrapper for the rsync utility, providing a simple YAML based configuration file. ![]()
0 Comments
Leave a Reply. |