Produced by Araxis Merge on 12/14/2017 1:28:07 PM Eastern Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | CUI-CPP-v2.3.2-source.zip\etc\my_init.d | db_init.sh | Mon Nov 20 23:19:07 2017 UTC |
| 2 | CUI-CPP-v2.3.2-source.zip\etc\my_init.d | db_init.sh | Thu Dec 14 15:27:18 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 120 |
| Changed | 1 | 10 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | #!/usr/bin /env bash | |
| 2 | ||
| 3 | cd /home/a pp/webapp | |
| 4 | ||
| 5 | date > /tm p/db_init. log | |
| 6 | ||
| 7 | echo " " > > /tmp/db_ init.log | |
| 8 | echo "Setu p database config fo r rails ap p..." >> / tmp/db_ini t.log | |
| 9 | echo " " > > /tmp/db_ init.log | |
| 10 | ||
| 11 | DBHOST= DNS | |
| 12 | DBPORT= PORT | |
| 13 | DBNAME=" AI " | |
| 14 | DBUSER=" AI " | |
| 15 | DBPSWD=" AI " | |
| 16 | ||
| 17 | if [[ -n $ ENV_DBHOST ]]; then | |
| 18 | DBHOST =$ENV_DBHO ST | |
| 19 | fi | |
| 20 | ||
| 21 | if [[ -n $ 1 ]]; then | |
| 22 | DBHOST =$1 | |
| 23 | fi | |
| 24 | ||
| 25 | if [[ -n $ 2 ]]; then | |
| 26 | DBPORT =$2 | |
| 27 | fi | |
| 28 | ||
| 29 | if [[ -n $ 3 ]]; then | |
| 30 | DBNAME =$3 | |
| 31 | fi | |
| 32 | ||
| 33 | if [[ -n $ 4 ]]; then | |
| 34 | DBUSER =$4 | |
| 35 | fi | |
| 36 | ||
| 37 | if [[ -n $ 5 ]]; then | |
| 38 | DBPSWD =$5 | |
| 39 | fi | |
| 40 | ||
| 41 | cd /home/a pp/webapp/ config | |
| 42 | su app -c "./setupdb config.sh $DBHOST $D BPORT $DBN AME $DBUSE R $DBPSWD" >> /tmp/d b_init.log | |
| 43 | cd /home/a pp/webapp | |
| 44 | ||
| 45 | echo " " > > /tmp/db_ init.log | |
| 46 | echo "Rese t Database ..." >> /t mp/db_init .log | |
| 47 | echo " " > > /tmp/db_ init.log | |
| 48 | su app -c "bundle ex ec rake db :reset" >> /tmp/db_i nit.log | |
| 49 | ||
| 50 | echo " " > > /tmp/db_ init.log | |
| 51 | echo "Migr ate Databa se..." >> /tmp/db_in it.log | |
| 52 | echo " " > > /tmp/db_ init.log | |
| 53 | su app -c "bundle ex ec rake db :migrate" >> /tmp/db _init.log | |
| 54 | ||
| 55 | echo " " > > /tmp/db_ init.log | |
| 56 | echo "Sync Specs..." >> /tmp/d b_init.log | |
| 57 | echo " " > > /tmp/db_ init.log | |
| 58 | su app -c "bundle ex ec rake sp ecs:sync" >> /tmp/db _init.log | |
| 59 | ||
| 60 | echo " " > > /tmp/db_ init.log | |
| 61 | echo "Seed Database. .." >> /tm p/db_init. log | |
| 62 | echo " " > > /tmp/db_ init.log | |
| 63 | su app -c "bundle ex ec rake db :seed" >> /tmp/db_in it.log | |
| 64 | ||
| 65 | date >> /t mp/db_init .log |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.