I'm using Travis CI pointing to my master branch on a GitHub repository. Travis is working fine so far for running tests but I still need to manually deploy the code after the code has successfully finished. I would like to automate this process using Travis again and deploy my _build folder to my server's /var/www/project_folder using ssh. Is that good? If yes, how can tell Travis to deploy after the tests?
Asked
Active
Viewed 580 times
1
-
There's a [deploy](https://docs.travis-ci.com/user/customizing-the-build/#The-Build-Lifecycle) build step you should be able to use, assisted by an SSH key encrypted via [travis-encrypt](https://docs.travis-ci.com/user/encrypting-files) and a little bit of Linux magic. – набиячлэвэли Jan 27 '16 at 11:23
-
Ok thanks but my question is: is this a good way for deploying a website or should I consider doing it differently? – andreasonny83 Jan 27 '16 at 12:06
-
IMHO, yes, it is a very good way of deploying to any remote servers in general. – набиячлэвэли Jan 27 '16 at 13:32