5.1 KiB
AniX Application Deployment
Vercel
Requirements:
- GitHub account
- Vercel account
Important
Your Vercel account must be linked with your GitHub account.
If you don't have a Vercel account, create one by signing in with GitHub.
-
Click the button to create a new project
-
Click the import button next to the repository name
-
(optional) Add variables to use your own player:
- NEXT_PUBLIC_KODIK_PARSER_URL
- NEXT_PUBLIC_ANILIBRIA_PARSER_URL
- NEXT_PUBLIC_SIBNET_PARSER_URL
Use the ones you received if you deployed anix-player-parsers
-
Click the "Deploy" button and wait until you see a confirmation
-
Click the "Continue to Dashboard" button
-
The client will be available at a link of this form, click it to open
Netlify
Requirements:
- GitHub account
- Netlify account
Important
Your Netlify account must be linked with your GitHub account.
If you don't have a Netlify account, create one by signing in with GitHub.
-
Click the button to create a new project
-
Click the GitHub button
-
Click the repository name
-
(optional) Fill in the project name
-
(optional) Add variables to use your own player:
- NEXT_PUBLIC_KODIK_PARSER_URL
- NEXT_PUBLIC_ANILIBRIA_PARSER_URL
- NEXT_PUBLIC_SIBNET_PARSER_URL
Use the ones you received if you deployed anix-player-parsers
-
Click the "Deploy" button and wait until you see a confirmation
-
The client will be available at a link of this form, click it to open
Docker
Requirements:
Pre-built
- Run the command:
docker run -d --name anix -p 3000:3000 radiquum/anix:latest
Manual build
Additional Requirements:
- Clone the repository
git clone https://github.com/Radiquum/AniX
- Navigate to the repository directory
cd AniX
- Run the command
docker build -t anix .
- Once finished, run the command:
docker run -d --restart always --name anix -p 3000:3000 anix
docker/Flags
- -d - run container in the background
- --restart always - always restart after server reboot
- --name - container name
- -p - container port to be exposed externally. PORT:3000
Note
For variables you received if you deployed anix-player-parsers, you need to use
-e VARIABLE=VALUE
before the word anix
docker/After deployment
The service will be available at: http://<YOUR IP><:YOUR PORT>/
docker/Note
To use your own domain and support HTTPS protocol, you can use Traefik or another reverse proxy with SSL certificate.
Useful links:
- Converter from docker run command to docker compose syntax
- How to setup Traefik + custom domain + SSL
pm2
Requirements:
Instructions:
- Clone the repository
git clone https://github.com/Radiquum/AniX
- Navigate to the repository directory
cd AniX
- Run the command
npm install
- (optional) copy
.env.sample
as.env
and fill it with variables you received if you deployed anix-player-parsers - Run the command
npm run build
- Create a new directory (next we will be refer to its name as
<new_dir>
) - Move the following files into the new directory (
<new_dir>
):- move
public
directory to<new_dir>/public
- move
.next/static
directory to<new_dir>/.next/static
- move files from
.next/standalone
to<new_dir>
- move
- Move into the created directory (<new_dir>) and run the command
pm2 start server.js -n anix
pm2/Flags
- -n - service name in pm2
pm2/After deployment
The service will be available at: http://<YOUR IP>:3000/
pm2/Note
To enable automatic application startup, it is recommended to configure pm2 to start on boot using the command: pm2 startup
Useful links: