Skip to content

ostdotcom/deprecated-0-9-2-company-web

Repository files navigation

Pre Setup

  • Install nginx
> brew install nginx
  • Modify nginx config file
> vim /usr/local/etc/nginx/nginx.conf
    server {
        listen       8080;
        server_name  developmentost.com;
        
        location /api/ {
            proxy_pass http://developmentost.com:4001;
        }

        location / {
            proxy_pass http://developmentost.com:3001;
        }
    }
    server {
        listen       8080;
        server_name  kyc.developmentost.com;
        
        location /api/ {
            proxy_pass http://kyc.developmentost.com:4000;
        }

        location / {
            proxy_pass http://kyc.developmentost.com:3000;
        }
    }
    server {
        listen       8080;
        server_name  sale.developmentsimpletoken.org;
        
        location /api/ {
            proxy_pass http://sale.developmentsimpletoken.org:4000;
        }

        location / {
            proxy_pass http://sale.developmentsimpletoken.org:3000;
        }
    }
    server {
        listen       8080;
        server_name  kit.developmentost.com;
        
        location /api/ {
            proxy_pass http://kit.developmentost.com:4001;
        }

        location / {
            proxy_pass http://kit.developmentost.com:3001;
        }
    }
    server {
        listen       8080;
        server_name  view.developmentost.com;

        location / {
            proxy_pass http://view.developmentost.com:7000;
        }
    }
    server {
        listen       8080;
        server_name  api.developmentost.com;

        location / {
            proxy_pass http://api.developmentost.com:7001;
        }
    }
  • Add custom host
> sudo vim /etc/hosts

127.0.0.1       developmentsimpletoken.org
127.0.0.1       sale.developmentsimpletoken.org
127.0.0.1       developmentost.com
127.0.0.1       kit.developmentost.com
127.0.0.1       kyc.developmentost.com
127.0.0.1       view.developmentost.com
127.0.0.1       api.developmentost.com

Start Web Services

  • Start nginx
> sudo nginx -s reload
  • Start Rails
> bundle install
> source set_env_vars.sh
> rails s -p 3001

#Go to browser http://kit.developmentost.com:8080/

About

OST KIT Web Interface for 0.9.2 (keep it till we redeem OST)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published