From c2260a235485670434e8950ffa9cc3c3e83b8e49 Mon Sep 17 00:00:00 2001 From: nothink Date: Wed, 25 Jul 2018 22:12:15 +0900 Subject: [PATCH] Fix for current HEAD server setting files. --- .travis.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0e675329..902620a6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,15 +15,15 @@ matrix: - sudo add-apt-repository -y ppa:mc3man/trusty-media - sudo apt-get update - sudo apt-get -y --allow-unauthenticated install ffmpeg - - cp config.yaml.dist config.yaml - - sed -i -e 's/^database:$/database:\ postgres:\/\/szuru:dog@localhost:5432\/szuru_test/' config.yaml + - cp server/config.yaml.dist config.yaml + - sed -i -e 's/^#database:$/database:\ postgres:\/\/szuru:dog@localhost:5432\/szuru_test/' config.yaml + - sed -i -e 's/^#elasticsearch:/elasticsearch:/' config.yaml + - sed -i -e 's/^# host: localhost$/ host: localhost/' config.yaml + - sed -i -e 's/^# port: 9200$/ port: 9200/' config.yaml + - sed -i -e 's/^# index: szurubooru$/ index: szurubooru/' config.yaml - sudo -i -u postgres createuser szuru -D -R -S - sudo -i -u postgres createdb szuru_test - sudo -i -u postgres psql -c "ALTER USER szuru PASSWORD 'dog';" - - sed -i -e 's/^api_url:/api_url:\ http:\/\/localhost\/api\//' config.yaml - - sed -i -e 's/^base_url:/base_url:\ http:\/\/localhost\//' config.yaml - - sed -i -e 's/^data_url:/data_url:\ http:\/\/localhost\/data\//' config.yaml - - sed -i -e 's/^data_dir:/data_dir:\ \/data\//' config.yaml install: - cd server - pip install -r requirements.txt