Capistrano git setup




















Otherwise open a GitHub issue with your questions or feedback. Search Overview What is Capistrano? Getting Started The Readme, start here! How can I access stage configuration variables? How can I check for existing remote file? Your only remaining task is to configure your web sever Apache, Nginx in order to serve your application.

Toggle navigation Menu. Case studies Articles Contact. Your browser doesn't support JavaScript or you have disabled JavaScript. For a better browsing experience, enable Javascript. Run the following command from the root directory of your application:.

If something is wrong with the permissions or SSH access, you will get error messages. Look closely at the output Capistrano gives you while the command is running.

The last step before we can do an actual deployment with Capistrano is to make sure that everything is set up correctly on the server from the setup command. This command will check your local environment and your server and locate likely problems.

If you see any error messages, fix them and run the command again. Once you can run cap deploy:check without errors, you can proceed! This will perform a deployment to your default stage, which is staging. While these commands are performed, you will see a lot of output. Capistrano print all commands it runs on your server as well as their output, making it possible for you to debug any problems.

Add the following to the section of your deploy. Capistrano shines by doing things more sophisticated than just copying files via SSH. You can configure events and commands to run after the copying of files completes, such as restart a web-server or run a custom script. Capistrano deploys using SSH. Thus, you must be able to SSH ideally with keys and ssh-agent from the deployment system to the destination system for Capistrano to work.

You can test this using a ssh client, e. If a password is requested when you log in, you may need to set up SSH keys. GitHub has a good tutorial on creating these follow steps 1 through 3.



0コメント

  • 1000 / 1000