Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Deployment

Dave M. Giglio edited this page Jan 22, 2019 · 1 revision

Deploying to the server

We are using CircleCI to deploy to the server.

Any push to the master branch of this repo will cause the code to be deployed to the MediaTemple server at ~/domains/brooklynrail.org/html/donate

# PHP CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-php/ for more details
#
version: 2

jobs:
  build:
    branches:
      only:
        - master
    docker:
      - image: circleci/php:7.1-node-browsers
    working_directory: ~/donate
    steps:
      - checkout
      - run: php composer.phar install
      - run: pwd
      - deploy:
          name: Deploy Over SSH
          command: rsync -e "ssh -o StrictHostKeyChecking=no" -arvc --exclude .git ~/donate/ serveradmin%[email protected]:~/domains/brooklynrail.org/html/donate
Clone this wiki locally