Skip to content

Commit

Permalink
Enabling space redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
Javy de Koning committed Apr 8, 2024
1 parent b95d9c4 commit e3c8c66
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,6 @@ max_line_length = 120
indent_style = tab
indent_size = 4
tab_width = 4

[*.sh]
space_redirects = true
2 changes: 1 addition & 1 deletion samples/sample-ec2-java-app-codedeploy/scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

cd /home/ec2-user/server
sudo /usr/bin/java -jar -Dserver.port=80 \
*.jar >/dev/null 2>/dev/null </dev/null &
*.jar > /dev/null 2> /dev/null < /dev/null &
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -xe

## Code Deploy Agent Bootstrap Script ##

exec > >(tee /var/log/user-data.log | logger -t user-data -s 2>/dev/console) 2>&1
exec > >(tee /var/log/user-data.log | logger -t user-data -s 2> /dev/console) 2>&1
AUTOUPDATE=false

function installdep() {
Expand Down
2 changes: 1 addition & 1 deletion samples/sample-ec2-with-codedeploy/scripts/install-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ echo "
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
</VirtualHost>
" | sudo tee -a /etc/httpd/conf/httpd.conf >/dev/null
" | sudo tee -a /etc/httpd/conf/httpd.conf > /dev/null

# start the httpd service now and stop it until userdata
sudo service httpd start
Expand Down
2 changes: 1 addition & 1 deletion samples/sample-fargate-node-app/build/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ docker push $REPOSITORY_URI:latest
docker push $REPOSITORY_URI:$IMAGE_TAG

tmp=$(mktemp)
jq --arg REPOSITORY_URI "$REPOSITORY_URI" --arg IMAGE_TAG "$IMAGE_TAG" '.Parameters.Image = $REPOSITORY_URI+":"+$IMAGE_TAG' params/global.json >"$tmp" && mv "$tmp" params/global.json
jq --arg REPOSITORY_URI "$REPOSITORY_URI" --arg IMAGE_TAG "$IMAGE_TAG" '.Parameters.Image = $REPOSITORY_URI+":"+$IMAGE_TAG' params/global.json > "$tmp" && mv "$tmp" params/global.json

0 comments on commit e3c8c66

Please sign in to comment.