mirror of
https://github.com/mempool/mempool.git
synced 2024-11-19 01:41:01 +01:00
19bb8988f8
This code has no effect because string `master` does not exist in `api/backend-info.ts`.
16 lines
626 B
Bash
Executable File
16 lines
626 B
Bash
Executable File
#!/bin/sh
|
|
|
|
#backend
|
|
cp ./docker/backend/* ./backend/
|
|
|
|
#frontend
|
|
localhostIP="127.0.0.1"
|
|
cp ./docker/frontend/* ./frontend
|
|
cp ./nginx.conf ./frontend/
|
|
cp ./nginx-mempool.conf ./frontend/
|
|
sed -i "s/${localhostIP}:80/0.0.0.0:__MEMPOOL_FRONTEND_HTTP_PORT__/g" ./frontend/nginx.conf
|
|
sed -i "s/${localhostIP}/0.0.0.0/g" ./frontend/nginx.conf
|
|
sed -i "s/user nobody;//g" ./frontend/nginx.conf
|
|
sed -i "s!/etc/nginx/nginx-mempool.conf!/etc/nginx/conf.d/nginx-mempool.conf!g" ./frontend/nginx.conf
|
|
sed -i "s/${localhostIP}:8999/__MEMPOOL_BACKEND_MAINNET_HTTP_HOST__:__MEMPOOL_BACKEND_MAINNET_HTTP_PORT__/g" ./frontend/nginx-mempool.conf
|