Skip to content

hi-swapx/fee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation and Deployment Manual

前言

硬件环境

系统环境

Ubuntu22.0.4

中间件环境

nodejs 20.0.0

环境部署

系统安装

默认安装或镜像,优化句柄数、启用安全组、默认不开放端口等基本优化。

中间件安装

应用部署

应用编译

应用配置

部署之前,请确保应用程序环境变量已配置。如果需要修改,可以进入应用程序修改环境变量。

配置文件 /config_devops/

  • config 用于配置应用程序的环境变量
  • sdk_config 用于配置swapx-sdk(uniswap)的合约信息

参考 config_template 下的模板文件,修改对应的配置文件

Docker部署

系统环境

Ubuntu22.0.4

应用配置

Docker发布需要根据config_template配置相应的发布环境变量


替换请求接口地址:REQUEST_BASE_URL变量值

### Docker命令

```shell
DOCKER_NODE_ENV

    1. 测试环境: test
    2. 生产环境: production

image_name: image名称

tag: image标签

container_name: 容器名称

host_port: Web 端口(默认设置 9606

container_port: 容器端口(默认9606)
# build image
docker build --build-arg DOCKER_NODE_ENV=production -t image_name:tag .

# build container
docker run --name container_name -p host_port:container_port -d image_name:tag

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published