From c0df1ccd25750c7f38ccbd804e319ad9350b85e6 Mon Sep 17 00:00:00 2001 From: Vitor Araujo Date: Tue, 19 Jun 2018 14:01:16 -0300 Subject: [PATCH 1/3] updated username username updated, refer to https://github.com/gravio-net/graviex/blob/master/config/nginx.conf#L49 --- doc/deploy-production-server.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/doc/deploy-production-server.md b/doc/deploy-production-server.md index 95201a412f..128331f08d 100644 --- a/doc/deploy-production-server.md +++ b/doc/deploy-production-server.md @@ -18,8 +18,8 @@ Deploy production server on Ubuntu 14.04 / 16 Create (if it doesn’t exist) deploy user, and assign it to the sudo group: - sudo adduser deploy - sudo usermod -a -G sudo deploy + sudo adduser graviex + sudo usermod -a -G sudo graviex Re-login as deploy user @@ -85,9 +85,9 @@ Please follow instructions here: https://www.rabbitmq.com/install-debian.html chmod +x rabbitmqadmin sudo mv rabbitmqadmin /usr/local/sbin - rabbitmqctl add_user deploy ***** + rabbitmqctl add_user graviex ***** rabbitmqctl set_user_tags deploy administrator - rabbitmqctl set_permissions -p / deploy ".*" ".*" ".*" + rabbitmqctl set_permissions -p / graviex ".*" ".*" ".*" ### 6. Install Bitcoind @@ -190,9 +190,8 @@ A JavaScript Runtime is needed for Asset Pipeline to work. Any runtime will do b ##### Clone the Source - mkdir -p ~/peatio - git clone git://github.com/peatio/peatio.git ~/peatio/current - cd peatio/current + git clone git://github.com/peatio/peatio.git ~/graviex-exchange + cd graviex-exchange # Install dependency gems bundle install --without development test --path vendor/bundle @@ -265,7 +264,7 @@ For security reason, you must setup SSL Certificate for production environment, **Passenger:** sudo rm /etc/nginx/sites-enabled/default - sudo ln -s /home/deploy/peatio/current/config/nginx.conf /etc/nginx/conf.d/peatio.conf + sudo ln -s /home/graviex/graviex-exchange/config/nginx.conf /etc/nginx/conf.d/peatio.conf sudo service nginx restart **Liability Proof** From dbbbbe4d767460e39e7bfd0d3c591491e9712d65 Mon Sep 17 00:00:00 2001 From: Vitor Araujo Date: Tue, 19 Jun 2018 14:02:52 -0300 Subject: [PATCH 2/3] removed deploy --- doc/deploy-production-server.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/deploy-production-server.md b/doc/deploy-production-server.md index 128331f08d..df101caa68 100644 --- a/doc/deploy-production-server.md +++ b/doc/deploy-production-server.md @@ -3,7 +3,7 @@ Deploy production server on Ubuntu 14.04 / 16 ### Overview -1. Setup deploy user +1. Setup graviex user 2. Install [Ruby](https://www.ruby-lang.org/en/) 3. Install [MySQL](http://www.mysql.com/) 4. Install [Redis](http://redis.io/) @@ -14,14 +14,14 @@ Deploy production server on Ubuntu 14.04 / 16 9. Install ImageMagick 10. Configure Peatio -### 1. Setup deploy user +### 1. Setup graviex user -Create (if it doesn’t exist) deploy user, and assign it to the sudo group: +Create (if it doesn’t exist) graviex user, and assign it to the sudo group: sudo adduser graviex sudo usermod -a -G sudo graviex -Re-login as deploy user +Re-login as graviex user ### 2. Install Ruby @@ -86,7 +86,7 @@ Please follow instructions here: https://www.rabbitmq.com/install-debian.html sudo mv rabbitmqadmin /usr/local/sbin rabbitmqctl add_user graviex ***** - rabbitmqctl set_user_tags deploy administrator + rabbitmqctl set_user_tags graviex administrator rabbitmqctl set_permissions -p / graviex ".*" ".*" ".*" ### 6. Install Bitcoind @@ -168,7 +168,7 @@ find the following lines, and uncomment them: update the second line to read: - passenger_ruby /home/deploy/.rbenv/shims/ruby; + passenger_ruby /home/graviex/.rbenv/shims/ruby; ### 8. Install JavaScript Runtime From 6d67c6b94d3a86f2552a595506e3692c21ee592e Mon Sep 17 00:00:00 2001 From: Vitor Araujo Date: Tue, 19 Jun 2018 14:06:19 -0300 Subject: [PATCH 3/3] Peatio to Graviex git Peatio to git://github.com/gravio-net/graviex.git --- doc/deploy-production-server.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/deploy-production-server.md b/doc/deploy-production-server.md index df101caa68..61b04892d5 100644 --- a/doc/deploy-production-server.md +++ b/doc/deploy-production-server.md @@ -190,7 +190,7 @@ A JavaScript Runtime is needed for Asset Pipeline to work. Any runtime will do b ##### Clone the Source - git clone git://github.com/peatio/peatio.git ~/graviex-exchange + git clone git://github.com/gravio-net/graviex.git ~/graviex-exchange cd graviex-exchange # Install dependency gems