mirror of
https://github.com/nikdoof/dropbot.git
synced 2025-12-17 11:49:22 +00:00
Remove custom deploy, revert back to basic Heroku
This commit is contained in:
22
wercker.yml
22
wercker.yml
@@ -10,25 +10,3 @@ build:
|
|||||||
name: Run unit testing
|
name: Run unit testing
|
||||||
code: |
|
code: |
|
||||||
python setup.py test
|
python setup.py test
|
||||||
deploy:
|
|
||||||
steps:
|
|
||||||
- add-to-known_hosts:
|
|
||||||
hostname: $TARGET_HOST
|
|
||||||
- mktemp:
|
|
||||||
envvar: PRIVATEKEY_PATH
|
|
||||||
- create-file:
|
|
||||||
name: write key
|
|
||||||
filename: $PRIVATEKEY_PATH
|
|
||||||
content: $SSH_KEY_PRIVATE
|
|
||||||
overwrite: true
|
|
||||||
hide-from-log: true
|
|
||||||
- script:
|
|
||||||
name: transfer application
|
|
||||||
code: |
|
|
||||||
scp -r -i $PRIVATEKEY_PATH -o StrictHostKeyChecking=no -o UserKnownHostsFile=no * $TARGET_USER@$TARGET_HOST:dropbot/
|
|
||||||
- script:
|
|
||||||
name: building virtualenv
|
|
||||||
code: ssh -i $PRIVATEKEY_PATH -l $TARGET_USER -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $TARGET_HOST virtualenv venv --no-site-packages
|
|
||||||
- script:
|
|
||||||
name: installing requirements
|
|
||||||
code: ssh -i $PRIVATEKEY_PATH -l $TARGET_USER -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $TARGET_HOST "source venv/bin/activate && cd dropbot/ && pip install -r requirements.txt"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user