Skip to content

Commit

Permalink
Update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
EtherCoreAdmin committed Feb 3, 2020
1 parent 31a6fba commit 783cc95
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aws.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb && sudo dpkg -i erlang-solutions_2.0_all.deb && curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - && sudo add-apt-repository -y ppa:deadsnakes/ppa && sudo apt-get install -y libpython3.7 libpython3.7-dev libpython3.7-minimal libpython3.7-stdlib python3.7 python3.7-dev python3.7-distutils python3.7-lib2to3 python3.7-minimal python3.7-venv python3.7-doc binfmt-support build-essential nodejs gcc g++ pkg-config file make cmake libgmp3-dev libtool esl-erlang elixir postgresql postgresql-contrib && curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && sudo python3.7 get-pip.py && rm get-pip.py && sudo python3.7 -m pip install pandas pathlib web3 && sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'poasidechain';"
wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb && sudo dpkg -i erlang-solutions_2.0_all.deb && rm erlang-solutions_2.0_all.deb && curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - && sudo add-apt-repository -y ppa:deadsnakes/ppa && sudo apt-get install -y libpython3.7 libpython3.7-dev libpython3.7-minimal libpython3.7-stdlib python3.7 python3.7-dev python3.7-distutils python3.7-lib2to3 python3.7-minimal python3.7-venv python3.7-doc binfmt-support build-essential nodejs gcc g++ pkg-config file make cmake libgmp3-dev libtool esl-erlang elixir postgresql postgresql-contrib && curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && sudo python3.7 get-pip.py && rm get-pip.py && sudo python3.7 -m pip install pandas pathlib web3 && sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'poasidechain';"
3 changes: 2 additions & 1 deletion init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ sudo cp bin/* /usr/local/bin
sudo cp systemd/* /etc/systemd/system
geth --datadir nodes/geth --nousb init geth.json
geth --datadir nodes/geth2 --nousb init geth.json
cd eth-netstats && npm i && cd ..
cd eth-netstats && npm i && npm run dist && cd ..
cd eth-net-intelligence-api && npm i && cd ..
cp ws_secret.json eth-netstats
cp api-config/* eth-net-intelligence-api
sudo npm i -g pm2
cp dev.secret.exs blockscout/apps/explorer/config/dev.secret.exs
cd blockscout && cp apps/block_scout_web/config/dev.secret.exs.example apps/block_scout_web/config/dev.secret.exs && mix do deps.get, local.rebar --force, deps.compile, compile && mix do ecto.create, ecto.migrate && cd apps/block_scout_web/assets; npm install && node_modules/webpack/bin/webpack.js --mode production; cd - && cd apps/explorer && npm install; cd - && mix phx.digest && cd apps/block_scout_web && mix phx.gen.cert blockscout blockscout.local; cd -
2 changes: 1 addition & 1 deletion start.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
sudo systemctl start parity geth geth2 netstats blockscout
sudo systemctl start parity geth geth2 netstats blockscout && cd eth-net-intelligence-api && pm2 start app.json app2.json app3.json

0 comments on commit 783cc95

Please sign in to comment.