Remove unused files
This commit is contained in:
parent
5d0467f4b8
commit
354e490894
@ -1 +0,0 @@
|
||||
1234
|
10
.travis.yml
10
.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
|
||||
|
64
Supfile
64
Supfile
@ -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
|
@ -1,5 +0,0 @@
|
||||
if [ $TRAVIS_BRANCH == 'staging' ]; then
|
||||
sup --debug staging deploy
|
||||
elif [ $TRAVIS_BRANCH == 'master' ]; then
|
||||
sup --debug prod deploy
|
||||
fi
|
@ -1,2 +0,0 @@
|
||||
#!/bin/bash
|
||||
geth --fast --cache=1024
|
@ -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 &
|
@ -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
|
Loading…
Reference in New Issue
Block a user