Where to install?
| Q | A |
|---|---|
| Issue Type | Question |
| Deployer Version | N/A |
| Local Machine OS | Ubuntu 16.10 |
| Remote Machine OS | Ubuntu 16.04 |
Questions
Sorry if this was asked and answered. Where should I install deployer? I'm working on local machine at home, and I have a remote server. Currently, my application is still in development, but on that remote server I have two enivorments: development and production (/var/www/dev.mydomain.com and /var/www/mydomain.com). So my guess is that deployer should be installed on remote server, am I correct? Or should it be on a separate server? Should I run deployer init command in each of those two project folders? After application release, I will get at least one more server, but it will only serve as production server (no /var/www/dev.mydomain.com). Do I need to install deployer on it too?
You should install Deployer to your local machine. In other words, you should install Deployer to the machine that you want to execute deploy command.
When you execute Deployer on your local machine, it will then access your remote server using SSH and do whatever the deploy task should do.
How about deployer init command? I must run it? If deployer is installed on my local machine, before running deployer init, I must have some configuration, made manually, for deployer to reach my project root directory on remote server? I'm using symfony 3, and I want to get default recipies for this framework generated automatically, also changed directory structure (added "releases" directory and so on), and I believe that is done by running deployer init.
Sorry for these questions, I want to use deployment tool like this for the first time, and documentation is not quite clear enough for a noob like me
You need to run dep init in your project dir on your local machine. And follow the instructions. That's it.
PS It will super cool, if you can add in docs moments what was not clear to you. This will help a lot.
Thank you guys for answers, helped me a lot. Yesterday I installed deployer on my local machine, and after a bit of configuration, I successfully deployed my project in development environment on remote server. Only one thing, I'm using symfony 3 for my project, when I ran deployer init command, it gave me a list of frameworks, I chose symfony, but in deployer.php that was created, it included symfony.php instead of symfony3.php, so I had to change that manually. Also, symfony3.php had basic configuration, like shared files, folders, writable directories, I did a mistake by not commenting out/removing these settings from deployer.php (so it would use these options from symfony3.php).
Overall I'm very happy, it's easy and exciting to use, will recommend it at my work.