Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Username fix, Deploy removed #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 13 additions & 14 deletions doc/deploy-production-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand All @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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**
Expand Down