diff --git a/doc/deploy-production-server.md b/doc/deploy-production-server.md index 95201a412f..61b04892d5 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 deploy - sudo usermod -a -G sudo deploy + sudo adduser graviex + sudo usermod -a -G sudo graviex -Re-login as deploy user +Re-login as graviex user ### 2. Install Ruby @@ -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 set_user_tags deploy administrator - rabbitmqctl set_permissions -p / deploy ".*" ".*" ".*" + rabbitmqctl add_user graviex ***** + 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 @@ -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/gravio-net/graviex.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**