File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,17 +54,17 @@ Resources:
5454 rm -rf $APP_DIR
5555 mkdir -p $APP_DIR
5656
57- git --work-tree=$APP_DIR --git-dir=$REPO_DIR checkout -f
57+ sudo -u ubuntu git --work-tree=$APP_DIR --git-dir=$REPO_DIR checkout -f main
5858 cd $APP_DIR
5959
60- # Requirement 6: Build the docker container. Tag it myapp
60+ # Requirement 6: Build the docker container. Tag it myapp
6161
6262 docker stop myapp-container || true
6363 docker rm myapp-container || true
6464
6565 pkill -f "docker logs -f myapp-container" || true
6666
67- # Requirement 7: Run the Docker container. Map the application port to port 80. Name the container myapp-container
67+ # Requirement 7: Run the Docker container. Map the application port to port 80. Name the container myapp-container
6868
6969 mkdir -p /home/ubuntu/logs
7070 touch $APP_LOG_FILE
You can’t perform that action at this time.
0 commit comments