AniX/DEPLOYMENT.md
2025-05-31 12:46:20 +05:00

5.1 KiB

AniX Application Deployment

Vercel

Requirements:

  • GitHub account
  • Vercel account
  1. Fork the repository

    fork button

  2. Log in to your 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.

  1. Click the button to create a new project

    vercel new project button

  2. Click the import button next to the repository name

    vercel import button

  3. (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

    vercel project settings

  4. Click the "Deploy" button and wait until you see a confirmation

  5. Click the "Continue to Dashboard" button

  6. The client will be available at a link of this form, click it to open vercel project url

Netlify

Requirements:

  • GitHub account
  • Netlify account
  1. Fork the repository

    fork button

  2. Log in to your 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.

  1. Click the button to create a new project

    netlify new project button

  2. Click the GitHub button

    netlify provider choice

  3. Click the repository name

    netlify import button

  4. (optional) Fill in the project name

    netlify project name

  5. (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

    1. alt text

    2. alt text

  6. Click the "Deploy" button and wait until you see a confirmation

  7. The client will be available at a link of this form, click it to open

    netlify project url

Docker

Requirements:

Pre-built

  1. Run the command:

docker run -d --name anix -p 3000:3000 radiquum/anix:latest

Manual build

Additional Requirements:

  1. Clone the repository git clone https://github.com/Radiquum/AniX
  2. Navigate to the repository directory cd AniX
  3. Run the command docker build -t anix .
  4. 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 run command

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:

pm2

Requirements:

Instructions:

  1. Clone the repository git clone https://github.com/Radiquum/AniX
  2. Navigate to the repository directory cd AniX
  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
  5. Run the command npm run build
  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>):
    • move public directory to <new_dir>/public
    • move .next/static directory to <new_dir>/.next/static
    • move files from .next/standalone to <new_dir>
  8. 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: