Advanced Steps - dapucita/haxbotron GitHub Wiki

Language : English, Korean(한국어)


Advanced Steps

If you want to manage your server in advanced steps, refer to this document.

🖥️ Separate Servers

The core server and db server can be operated in different locations.

If the servers run from different remote locations, you have to set the IP address and port number for each server.

Set .env file in core and db server directory.

💽 Build Servers

Separate build environment from execution server

If you build Haxbotron at low-spec computer, it may not be smooth.

In particular, remote server may lack CPU and memory performance for build the application.

In that case, build from your local computer and upload only the build results(core/out, core/public/out, db/out) to the remote server.

Build each server separately

[haxbotron/] npm run quick:build

The Quick Build command is convenient, but it can take time because it builds both the Core server and the DB server.

If you need to build only one server, use the 'npm run build' command instead of the Quick Build command to build each server individually:

[haxbotron/core/] npm run build

[haxbotron/db/] npm run build

🚨 Enhance Security

  1. Set firewall. If you are using a server hosting service, the network settings provided as a web management tool will also help.

  2. Set .env file in core and db server directory to change the default port number and set an IP addresses whitelist.