How to deploy with SCP and custom port

If logo.png was in the root of your repository and you wanted to deploy the master branch:

deployment:
  production:
    branch: master
    commands:
      - scp -P 2222 ~/<MY-REPO-NAME>/logo.png thatilike@192.185.21.105:public_html/
1 Like