Skip to content

Commit ba81471

Browse files
committed
tweak ssh deploy
1 parent c80b79a commit ba81471

4 files changed

Lines changed: 8 additions & 6 deletions

File tree

buildspec-2-caching.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ phases:
7070

7171
cache:
7272
paths:
73-
#Debian package caches, so we don't need to keep redownloading debian packages:
73+
# Debian package caches, so we don't need to keep redownloading debian packages:
7474
- /var/cache/apt/**/*
7575
- /var/lib/apt/lists/**/*
7676

buildspec-3-coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ phases:
7777

7878
cache:
7979
paths:
80-
#Debian package caches, so we don't need to keep redownloading debian packages:
80+
# Debian package caches, so we don't need to keep redownloading debian packages:
8181
- /var/cache/apt/**/*
8282
- /var/lib/apt/lists/**/*
8383

buildspec-4-sftpdeploy.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,19 @@ phases:
8989
# Ensure the known_hosts file knows about the ssh server
9090
- ssh-keyscan -H -t rsa ${SSH_SERVER} >> ~/.ssh/known_hosts
9191

92+
# Run any necessary remote commands
93+
- ssh ${SSH_USERNAME}@${SSH_SERVER} -p ${SSH_PORT} composer install --optimize-autoloader
94+
9295
# Upload Files
9396
- scp -v -p ${SFTP_PORT} -r build/ ${SSH_USERNAME}@${SSH_SERVER}:/public_html
9497

95-
# Run any necessary remote commands
96-
- ssh ${SSH_USERNAME}@${SSH_SERVER} -p ${SSH_PORT} composer install --optimize-autoloader
98+
9799

98100

99101

100102
cache:
101103
paths:
102-
#Debian package caches, so we don't need to keep redownloading debian packages:
104+
# Debian package caches, so we don't need to keep redownloading debian packages:
103105
- /var/cache/apt/**/*
104106
- /var/lib/apt/lists/**/*
105107

buildspec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ phases:
5757
post_build:
5858
commands:
5959
- echo Build completed on `date`
60-
#Do you need to do this? In many cases phpunit will use sqllite or similar to avoid the need for a real DB.
60+
# Do you need to do this? In many cases phpunit will use sqllite or similar to avoid the need for a real DB.
6161
# If you don't need it delete it
6262
# - /usr/bin/mysql -u root -e "GRANT ALL ON *.* TO 'test'@'localhost' IDENTIFIED BY '' WITH GRANT OPTION"
6363
# - mysqladmin -u test create test

0 commit comments

Comments
 (0)