Little helper for builds.
This commit is contained in:
parent
8c3ad8d8f4
commit
8c819cee3f
1 changed files with 14 additions and 0 deletions
14
script/build/test_db_config.sh
Executable file
14
script/build/test_db_config.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
DBNAME=$1
|
||||
DBFILE=config/database.yml2
|
||||
|
||||
echo "Creating $DBFILE for tests with dbname $DBNAME"
|
||||
|
||||
echo "test:" > $DBFILE
|
||||
echo " adapter: mysql2" >> $DBFILE
|
||||
echo " database: $DBNAME" >> $DBFILE
|
||||
echo " pool: 50" >> $DBFILE
|
||||
echo " timeout: 5000" >> $DBFILE
|
||||
echo " encoding: utf8" >> $DBFILE
|
||||
echo " username: root" >> $DBFILE
|
||||
echo " password:" >> $DBFILE
|
Loading…
Reference in a new issue