mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-11 18:26:50 +00:00
Added comments to scripts
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This script runs RuboCop.
|
||||
|
||||
echo '----------------------------------------------------'
|
||||
echo 'BEGIN: docker-compose run web bundle exec rubocop -D'
|
||||
echo '----------------------------------------------------'
|
||||
|
||||
@@ -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=$?
|
||||
|
||||
@@ -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 '-------------------------------------------------------'
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user