diff --git a/.private_blockchain_password b/.private_blockchain_password deleted file mode 100644 index 81c545ef..00000000 --- a/.private_blockchain_password +++ /dev/null @@ -1 +0,0 @@ -1234 diff --git a/.travis.yml b/.travis.yml index b58d6ee3..237dc152 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,26 +6,20 @@ services: - postgresql addons: postgresql: "9.6" - ssh_known_hosts: - - 147.75.96.51 go_import_path: github.com/vulcanize/vulcanizedb before_install: # ginkgo golint dep goose - - echo -e "Host github.com\n\tHostName github.com\n\tUser git\n\tIdentityFile ~/.ssh/id_rsa\n" >> ~/.ssh/config - make installtools - bash ./scripts/install-postgres-10.sh - - npm install -g ganache-cli - curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list - sudo apt-get update && sudo apt-get install yarn before_script: - - go get -u github.com/pressly/sup/cmd/sup - sudo -u postgres createdb vulcanize_private - make migrate NAME=vulcanize_private - - bash ./scripts/start_test_chain.sh - cd postgraphile && yarn script: @@ -36,7 +30,3 @@ script: notifications: email: false - -after_script: - - bash ./scripts/stop_test_chain.sh - - bash ./bin/deploy.sh diff --git a/Supfile b/Supfile deleted file mode 100644 index 5aef5d17..00000000 --- a/Supfile +++ /dev/null @@ -1,64 +0,0 @@ ---- -version: 0.5 - -env: - VDB_PATH: /root/go_projects/src/github.com/vulcanize/vulcanizedb - VDB_PG_USER: vulcanize - VDB_PG_PW: vulcanize - -networks: - staging: - hosts: - - root@147.75.96.51 - prod: - hosts: - - root@147.75.197.13 - -targets: - deploy: - - remove - - transfer - - buildPostgraphile - - buildVDB - - migrate - - lightSync - - postgraphile - -commands: - remove: - desc: remove old vulcanizedb - run: rm -rf $VDB_PATH && rm -rf /usr/local/vulcanizedb && mkdir -p $VDB_PATH - transfer: - desc: transfer repo to remote server - upload: - - src: . - dst: $VDB_PATH - migrate: - desc: run migration - run: > - cd $VDB_PATH && - make installtools && - cd db/migrations && - /root/go_projects/bin/goose postgres "postgresql://$(VDB_PG_USER):$(VDB_PG_PW)@127.0.0.1:5432/vulcanize_public?sslmode=disable" up - buildPostgraphile: - desc: build postgraphile app - run: > - cd $VDB_PATH/postgraphile && - yarn && tsc - buildVDB: - desc: build vulcanizedb - run: > - cd $VDB_PATH && - GOPATH=$HOME/go_projects go get && - GOPATH=$HOME/go_projects go build && - cp -r . /usr/local/vulcanizedb - lightSync: - desc: start vdb light sync - run: > - systemctl daemon-reload && - sudo systemctl restart vulcanizedb_light_sync.service && - sudo systemctl restart vulcanizedb_log_sync.service && - sudo systemctl restart vulcanizedb_recheck_sync.service - postgraphile: - desc: start postgraphile - run: systemctl daemon-reload && sudo systemctl restart postgraphile.service diff --git a/bin/deploy.sh b/bin/deploy.sh deleted file mode 100755 index 1d1a4dd9..00000000 --- a/bin/deploy.sh +++ /dev/null @@ -1,5 +0,0 @@ -if [ $TRAVIS_BRANCH == 'staging' ]; then - sup --debug staging deploy -elif [ $TRAVIS_BRANCH == 'master' ]; then - sup --debug prod deploy -fi diff --git a/scripts/start_blockchain b/scripts/start_blockchain deleted file mode 100755 index fbec61d7..00000000 --- a/scripts/start_blockchain +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -geth --fast --cache=1024 diff --git a/scripts/start_test_chain.sh b/scripts/start_test_chain.sh deleted file mode 100755 index 58b7707b..00000000 --- a/scripts/start_test_chain.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -MNEMONIC_PHRASE="whisper ordinary mystery awesome wood fox auction february blind volcano spare soft" -PORT=7545 -DATABASE_PATH=test_data/test_chain/ -echo Starting ganache chain on port $PORT... - -ganache-cli --port $PORT \ - --db $DATABASE_PATH \ - 2>&1 > ganache-output.log & diff --git a/scripts/stop_test_chain.sh b/scripts/stop_test_chain.sh deleted file mode 100755 index ea88d76a..00000000 --- a/scripts/stop_test_chain.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -echo "Stopping ganache chain on port 7545" -ps -ef | grep ganache | grep -v grep | awk '{print $2}' | xargs kill \ No newline at end of file