mirror of
https://github.com/Radiquum/AniX.git
synced 2025-09-05 14:05:36 +05:00
rename player-parsers to player-parser for consistency with docker image
This commit is contained in:
parent
4701f6f62e
commit
1a1b548d39
15 changed files with 11 additions and 11 deletions
|
@ -31,7 +31,7 @@
|
||||||
- NEXT_PUBLIC_PLAYER_PARSER_URL
|
- NEXT_PUBLIC_PLAYER_PARSER_URL
|
||||||
- NEXT_PUBLIC_API_URL
|
- NEXT_PUBLIC_API_URL
|
||||||
|
|
||||||
на те которые вы получили, если развёртывали [anix-player-parsers](./player-parsers/README.RU.md) и/или [anix-api-prox](./api-prox/README.RU.md)
|
на те которые вы получили, если развёртывали [anix-player-parser](./player-parser/README.RU.md) и/или [anix-api-prox](./api-prox/README.RU.md)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@
|
||||||
- NEXT_PUBLIC_PLAYER_PARSER_URL
|
- NEXT_PUBLIC_PLAYER_PARSER_URL
|
||||||
- NEXT_PUBLIC_API_URL
|
- NEXT_PUBLIC_API_URL
|
||||||
|
|
||||||
на те которые вы получили, если развёртывали [anix-player-parsers](./player-parsers/README.RU.md) и/или [anix-api-prox](./api-prox/README.RU.md)
|
на те которые вы получили, если развёртывали [anix-player-parser](./player-parser/README.RU.md) и/или [anix-api-prox](./api-prox/README.RU.md)
|
||||||
|
|
||||||
1. 
|
1. 
|
||||||
|
|
||||||
|
@ -122,7 +122,7 @@
|
||||||
- -p - порт контейнера который будет доступен извне. ПОРТ:3000
|
- -p - порт контейнера который будет доступен извне. ПОРТ:3000
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
> для переменных которые вы получили, если развёртывали [anix-player-parsers](./player-parsers/README.RU.md) и/или [anix-api-prox](./api-prox/README.RU.md), необходимо использовать `-e ПЕРЕМЕННАЯ=ЗНАЧЕНИЕ` до последнего слова anix
|
> для переменных которые вы получили, если развёртывали [anix-player-parser](./player-parser/README.RU.md) и/или [anix-api-prox](./api-prox/README.RU.md), необходимо использовать `-e ПЕРЕМЕННАЯ=ЗНАЧЕНИЕ` до последнего слова anix
|
||||||
|
|
||||||
[команда docker run](https://docs.docker.com/reference/cli/docker/container/run/)
|
[команда docker run](https://docs.docker.com/reference/cli/docker/container/run/)
|
||||||
|
|
||||||
|
@ -152,7 +152,7 @@
|
||||||
1. Клонируйте репозиторий `git clone https://github.com/Radiquum/AniX`
|
1. Клонируйте репозиторий `git clone https://github.com/Radiquum/AniX`
|
||||||
2. Переместитесь в директорию репозитория `cd AniX`
|
2. Переместитесь в директорию репозитория `cd AniX`
|
||||||
3. Выполните команду `npm install`
|
3. Выполните команду `npm install`
|
||||||
4. (опционально) скопируйте .env.sample как .env и заполните его переменными которые вы получили, если развёртывали [anix-player-parsers](./player-parsers/README.RU.md) и/или [anix-api-prox](./api-prox/README.RU.md)
|
4. (опционально) скопируйте .env.sample как .env и заполните его переменными которые вы получили, если развёртывали [anix-player-parser](./player-parser/README.RU.md) и/или [anix-api-prox](./api-prox/README.RU.md)
|
||||||
5. Выполните команду `npm run build`
|
5. Выполните команду `npm run build`
|
||||||
6. создайте новую директорию (далее будем использовать `<имя_новой_директории>` как её имя)
|
6. создайте новую директорию (далее будем использовать `<имя_новой_директории>` как её имя)
|
||||||
7. переместите в созданную директорию (`<имя_новой_директории>`)
|
7. переместите в созданную директорию (`<имя_новой_директории>`)
|
||||||
|
|
|
@ -31,7 +31,7 @@ Requirements:
|
||||||
- NEXT_PUBLIC_PLAYER_PARSER_URL
|
- NEXT_PUBLIC_PLAYER_PARSER_URL
|
||||||
- NEXT_PUBLIC_API_URL
|
- NEXT_PUBLIC_API_URL
|
||||||
|
|
||||||
Use the ones you received if you deployed [anix-player-parsers](./player-parsers/README.md) and/or [anix-api-prox](./api-prox/README.md)
|
Use the ones you received if you deployed [anix-player-parser](./player-parser/README.md) and/or [anix-api-prox](./api-prox/README.md)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ Requirements:
|
||||||
- NEXT_PUBLIC_PLAYER_PARSER_URL
|
- NEXT_PUBLIC_PLAYER_PARSER_URL
|
||||||
- NEXT_PUBLIC_API_URL
|
- NEXT_PUBLIC_API_URL
|
||||||
|
|
||||||
Use the ones you received if you deployed [anix-player-parsers](./player-parsers/README.md) and/or [anix-api-prox](./api-prox/README.md)
|
Use the ones you received if you deployed [anix-player-parser](./player-parser/README.md) and/or [anix-api-prox](./api-prox/README.md)
|
||||||
|
|
||||||
1. 
|
1. 
|
||||||
|
|
||||||
|
@ -122,7 +122,7 @@ Additional Requirements:
|
||||||
- -p - container port to be exposed externally. PORT:3000
|
- -p - container port to be exposed externally. PORT:3000
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
> For variables you received if you deployed [anix-player-parsers](./player-parsers/README.md) and/or [anix-api-prox](./api-prox/README.md), you need to use `-e VARIABLE=VALUE` before the last word anix
|
> For variables you received if you deployed [anix-player-parser](./player-parser/README.md) and/or [anix-api-prox](./api-prox/README.md), you need to use `-e VARIABLE=VALUE` before the last word anix
|
||||||
|
|
||||||
[docker run command](https://docs.docker.com/reference/cli/docker/container/run/)
|
[docker run command](https://docs.docker.com/reference/cli/docker/container/run/)
|
||||||
|
|
||||||
|
@ -152,7 +152,7 @@ Instructions:
|
||||||
1. Clone the repository `git clone https://github.com/Radiquum/AniX`
|
1. Clone the repository `git clone https://github.com/Radiquum/AniX`
|
||||||
2. Navigate to the repository directory `cd AniX`
|
2. Navigate to the repository directory `cd AniX`
|
||||||
3. Run the command `npm install`
|
3. Run the command `npm install`
|
||||||
4. (optional) copy `.env.sample` as `.env` and fill it with variables you received if you deployed [anix-player-parsers](./player-parsers/README.md) and/or [anix-api-prox](./api-prox/README.md)
|
4. (optional) copy `.env.sample` as `.env` and fill it with variables you received if you deployed [anix-player-parser](./player-parser/README.md) and/or [anix-api-prox](./api-prox/README.md)
|
||||||
5. Run the command `npm run build`
|
5. Run the command `npm run build`
|
||||||
6. Create a new directory (next we will be refer to its name as `<new_dir>`)
|
6. Create a new directory (next we will be refer to its name as `<new_dir>`)
|
||||||
7. Move the following files into the new directory (`<new_dir>`):
|
7. Move the following files into the new directory (`<new_dir>`):
|
||||||
|
|
|
@ -29,7 +29,7 @@ app.use(express.json());
|
||||||
app.use(express.urlencoded({ extended: true }));
|
app.use(express.urlencoded({ extended: true }));
|
||||||
|
|
||||||
const HOST = process.env.HOST || "0.0.0.0";
|
const HOST = process.env.HOST || "0.0.0.0";
|
||||||
const PORT = process.env.PORT ? parseInt(process.env.PORT, 10) : 7001;
|
const PORT = 7001;
|
||||||
|
|
||||||
let hooks: string[] = [];
|
let hooks: string[] = [];
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ app.use(function (req, res, next) {
|
||||||
});
|
});
|
||||||
|
|
||||||
const HOST = process.env.HOST || "0.0.0.0";
|
const HOST = process.env.HOST || "0.0.0.0";
|
||||||
const PORT = process.env.PORT ? parseInt(process.env.PORT, 10) : 7000;
|
const PORT = 7000;
|
||||||
const allowedPlayers = ["kodik", "libria", "sibnet"];
|
const allowedPlayers = ["kodik", "libria", "sibnet"];
|
||||||
|
|
||||||
app.get("/", (req, res) => {
|
app.get("/", (req, res) => {
|
|
@ -33,5 +33,5 @@
|
||||||
"**/*.tsx",
|
"**/*.tsx",
|
||||||
"next.config.js"
|
"next.config.js"
|
||||||
],
|
],
|
||||||
"exclude": ["node_modules", "player-parsers", "api-prox"]
|
"exclude": ["node_modules", "player-parser", "api-prox"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue