stanzas:
    - type: webapp
      exec: ../dist/build/Snowdrift/Snowdrift
      args:
          - production
      env:
          # FIXME: Remove dev after DNS switchover
          APPROOT: https://dev.snowdrift.coop
          PGDATABASE: snowdrift_production
          PGUSER: snowdrift_production
      forward-env:
          - PGPASS
      hosts:
          - snowdrift.coop
          # FIXME: Remove after dns switchover
          - dev.snowdrift.coop

    # - type: background
    #   exec: ../dist/build/SnowdriftEmailDaemon/SnowdriftEmailDaemon
    #   env:
    #       PGDATABASE: snowdrift_production
    #       PGUSER: snowdrift_production
    #   forward-env:
    #       - PGPASS
    #   args:
    #       - '--db=production'
    #       - '--email=notifications@snowdrift.coop'

    - type: background
      exec: manage-symlink

extraFiles:
    - ../migrations
    # FIXME: This shouldn't be needed.
    - ../templates

# FIXME: Remove dev after DNS switchover
copy-to: dev.snowdrift.coop:/opt/keter/incoming

stanzas:
    - type: webapp
      exec: ../dist/build/Snowdrift/Snowdrift
      args:
          - production
      env:
          # FIXME: Remove dev after DNS switchover
          APPROOT: https://dev.snowdrift.coop
          PGDATABASE: snowdrift_production
          PGUSER: snowdrift_production
      forward-env:
          - PGPASS
      hosts:
          - snowdrift.coop
          # FIXME: Remove after dns switchover
          - dev.snowdrift.coop

    # - type: background
    #   exec: ../dist/build/SnowdriftEmailDaemon/SnowdriftEmailDaemon
    #   env:
    #       PGDATABASE: snowdrift_production
    #       PGUSER: snowdrift_production
    #   forward-env:
    #       - PGPASS
    #   args:
    #       - '--db=production'
    #       - '--email=notifications@snowdrift.coop'

    - type: background
      exec: manage-symlink

extraFiles:
    - ../migrations
    # FIXME: This shouldn't be needed.
    - ../templates

# Assuming you have an awscli profile named 'snowdrift' that refers to the
# Snowdrift account, the server to copy to can be acquired with:
# $ aws --profile snowdrift ec2 describe-instances --instance-ids i-81a6df28 --query 'Reservations[].Instances[].PublicDnsName'
copy-to: ec2-54-152-177-195.compute-1.amazonaws.com:/opt/keter/incoming

Change and document copy-to server
Change and document copy-to server
