Fix ODK Build database population
This commit is contained in:
parent
12b7200f9e
commit
c0d9204daf
@ -17,7 +17,7 @@ envsubst <${SOURCE_DIR}/createdb.sql | docker exec -i postgres psql
|
|||||||
export ODKBUILD_COOKIE_SECRET=$(head -c 8 /dev/urandom | hexdump -e '"%x"')
|
export ODKBUILD_COOKIE_SECRET=$(head -c 8 /dev/urandom | hexdump -e '"%x"')
|
||||||
mkdir -p /srv/opendatakit-build/conf
|
mkdir -p /srv/opendatakit-build/conf
|
||||||
envsubst <${SOURCE_DIR}/srv/opendatakit-build/conf/config.yml >/srv/opendatakit-build/conf/config.yml
|
envsubst <${SOURCE_DIR}/srv/opendatakit-build/conf/config.yml >/srv/opendatakit-build/conf/config.yml
|
||||||
docker run --rm -h opendatakit-build --link postgres -v /srv/opendatakit-build/conf/config.yml:/srv/odkbuild/config.yml opendatakit-build rake db:migrate
|
docker run --rm -h opendatakit-build --link postgres -v /srv/opendatakit-build/conf/config.yml:/srv/odkbuild/config.yml -w /srv/odkbuild opendatakit-build rake db:migrate
|
||||||
|
|
||||||
# Create OpenDataKit service
|
# Create OpenDataKit service
|
||||||
cp ${SOURCE_DIR}/etc/init.d/opendatakit-build /etc/init.d/opendatakit-build
|
cp ${SOURCE_DIR}/etc/init.d/opendatakit-build /etc/init.d/opendatakit-build
|
||||||
|
Loading…
Reference in New Issue
Block a user