Skip to content

Commit

Permalink
Reverting to a working version
Browse files Browse the repository at this point in the history
  • Loading branch information
ali92hm committed May 29, 2019
1 parent 39cf7f5 commit c9f28cd
Showing 1 changed file with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@ WEBSOCKET_ENDPOINT=$2
DATABASE_PW=$3

# Erlang VM & Elixir Install
wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
sudo dpkg -i erlang-solutions_1.0_all.deb
wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && sudo dpkg -i erlang-solutions_1.0_all.deb
sudo apt-get update
sudo apt-get -y install esl-erlang
sudo apt-get -y install elixir
sudo apt-get -y install esl-erlang=1:21.1.1-1
sudo apt-get -y install elixir=1.7.4-1

# gcc, make and build-essential Install
sudo apt-get -y install build-essential make automake libtool inotify-tools autoconf libgmp-dev gcc
sudo apt-get install make
sudo apt-get -y install gcc
sudo apt-get -y install build-essential

# nginx Install
sudo apt-get -y install nginx && sudo ufw allow 'Nginx HTTP'
Expand All @@ -44,8 +45,8 @@ sudo apt-get -y install nodejs
sudo ln -s /usr/bin/nodejs /usr/bin/node

# PostgreSQL Install
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc -O - | sudo apt-key add -
echo 'deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main' sudo tee -a /etc/apt/sources.list.d/pgdg.list
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update && sudo apt-get -y install postgresql
sudo apt-get update && sudo apt-get -y install postgresql-client

Expand All @@ -56,7 +57,7 @@ sudo -u postgres psql -U postgres -d postgres -c "alter user postgres with passw
sudo apt-get install -y git
sudo git clone https://github.com/poanetwork/blockscout.git && echo "cloned"
cd blockscout
sudo git checkout master && echo "checked out"; cd -
sudo git checkout 53ea60c3 && echo "checked out"; cd -
sudo chmod -R a+x blockscout && echo "permissions granted"


Expand Down Expand Up @@ -195,7 +196,7 @@ echo "
Environment=MIX_ENV=prod
Environment=LANG=en_US.UTF-8
WorkingDirectory=/home/$USER/blockscout
ExecStart=/usr/bin/mix phx.server
ExecStart=/usr/local/bin/mix phx.server
[Install]
WantedBy=multi-user.target
Expand Down

0 comments on commit c9f28cd

Please sign in to comment.