Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
c3ho committed Nov 28, 2020
1 parent f141be3 commit c508b54
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions appspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ os: linux
files:
- source: /
# remember to change ubuntu back to ec2-user
destination: /var/www/server
destination: /home/ubuntu/server

# If you are not running any commands on the Amazon EC2 instance, then remove
# the "hooks" section altogether. A blank or incomplete "hooks" section
Expand Down Expand Up @@ -59,7 +59,7 @@ hooks:
# in the script specified in "location" starting from the root of the
# revision's file bundle.
ApplicationStop:
- location: ./shScripts/kill_container.sh
- location: scripts/kill_container.sh
timeout: 20
runas: root

Expand All @@ -69,6 +69,6 @@ hooks:
# During the ApplicationStart deployment lifecycle event, run the commands
# in the script specified in "location".
ApplicationStart:
- location: ./shScripts/start_container.sh
- location: scripts/start_container.sh
timeout: 20
runas: root
6 changes: 3 additions & 3 deletions scripts/kill_container.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
echo ${pwd}
cd home/ubuntu/server
pwd
# Remember to change back to ec2-user
cd /home/ubuntu/server

docker-compose down
4 changes: 2 additions & 2 deletions scripts/start_container.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
# Remember to change back to ec2-user
cd home/ubuntu/server
pwd
cd /home/ubuntu/server

docker-compose up -d
File renamed without changes.

0 comments on commit c508b54

Please sign in to comment.