Skip to content

Node.js Deployment Overview on Server

Prerequisites

To successfully install the application on the server, the following conditions must be met:

  • Operating System: Ubuntu or Debian.

  • Access Rights: The user must have superuser privileges (sudo) to install system packages.

  • Network Access: Access to NodeSource repositories and standard OS repositories is required to download packages.

Application Installation Process

The deployment process involves system preparation and the installation of the JavaScript runtime environment. The main stages include:

  1. Waiting for System Processes to Complete: Waiting for cloud-init to finish execution and for APT package manager locks to be released to avoid conflicts during installation.

  2. Installing Basic Dependencies: Installing curl and npm tools.

  3. Configuring NodeSource Repository: Adding the official repository to obtain the latest runtime version.

  4. Installing Node.js: Downloading and installing the nodejs package.

After the installation is complete, the installed version is verified using the node -v command.

Access Rights and Security

  • Package Manager: The installation process uses the system lock apt/dpkg, which prevents simultaneous changes to the system configuration.

  • Package Security: Installation is performed from official NodeSource repositories, ensuring that verified security updates for the runtime are received.

Application Update Instructions

To update the Node.js runtime on the server, perform the following actions:

  1. Update the package lists in the system:

    sudo apt update
    

  2. Run the command to upgrade installed packages:

    sudo apt upgrade nodejs
    

Available Ports for Connection

The application uses the Node.js environment, which allows running services on any ports other than system ports (below 1024), provided that the operating system has the appropriate access rights. Specific ports depend on the configuration of the application itself after deployment.

question_mark
Is there anything I can help you with?
question_mark
AI Assistant ×