Added comments to scripts

This commit is contained in:
Jason Hsu
2020-09-25 00:12:27 -05:00
parent dff6e5ce38
commit 2a902f29bb
6 changed files with 13 additions and 0 deletions

View File

@@ -1,6 +1,8 @@
#!/bin/bash
set -e
# This script builds the Docker container, seeds the app with simulated data, and logs the screen output.
DATE=`date +%Y%m%d-%H%M%S-%3N`
docker/build-log 2>&1 | tee log/build-$DATE.log
docker/seed 2>&1 | tee log/seed-$DATE.log

View File

@@ -1,5 +1,7 @@
#!/bin/bash
# This script runs RuboCop.
echo '----------------------------------------------------'
echo 'BEGIN: docker-compose run web bundle exec rubocop -D'
echo '----------------------------------------------------'

View File

@@ -2,6 +2,9 @@
set -e
# Use this script to execute commaands in the Docker container.
# Example: To run the "ls -l" command in the Docker container, enter the command "docker/exec ls -l".
function cleanup {
# capture exit code
code=$?

View File

@@ -1,5 +1,7 @@
#!/bin/bash
# This is the data seeding script.
echo '-------------------------------------------------------'
echo 'BEGIN: docker-compose run web bundle exec rake db:reset'
echo '-------------------------------------------------------'

View File

@@ -1,5 +1,7 @@
#!/bin/bash
set -e
# This script runs the Rails server and logs the screen output.
DATE=`date +%Y%m%d-%H%M%S-%3N`
docker/server-log 2>&1 | tee log/server-$DATE.log

View File

@@ -1,5 +1,7 @@
#!/bin/bash
set -e
# This script runs the entire test suite AND logs the screen output.
DATE=`date +%Y%m%d-%H%M%S-%3N`
docker/test-log 2>&1 | tee log/test-$DATE.log