Skip to content

Payload installation

  1. Upload the project files Upload the Project Files First, upload the botify.zip file to your VPS using FTP, SCP, or your preferred file transfer method

    scp main.zip root@your-server-ip:/var/www/
  2. Unzip the Project Once uploaded

    cd /var/www/
    sudo unzip botify.zip -d payloadcms
  3. Navigate to the Project Directory

    cd /var/www/payloadcms
  4. Update the .env File Open the .env file located in the root directory and update it with the correct credentials and configuration values

    DATABASE_URI=postgresql://<your_database_user_here>:<your_password_here>@localhost:5432/<your_database_name>
    PAYLOAD_SECRET=<your_secret_here>
    GOOGLE_API_KEY=AIzaSyBxmm-<your_Google_api_here>
    NEXT_PUBLIC_SERVER_URL=http://localhost:3000
    SMTP_HOST= <your_host_here>
    SMTP_USER=<your_smtp_here>
    SMTP_PASS=<your_password_here>
  5. Run the following command to install all project dependencies

    pnpm i
  6. Compile the Payload project for production:

    pnpm build
  7. Apply database schema changes using Payload’s migration system::

    pnpm payload migrate
  8. You can now start the application using:

    pnpm start
  9. To keep your Node.js application running continuously in the background, use PM2: For installation pm2 instruction visit https://pm2.io/docs/runtime/guide/installation/

    pm2 start pnpm -- start

Note: Payload CMS Docker installation requires an extended license. Please contact us for more details.

  1. Upload the Project Files First, upload the botify.zip file to your VPS using FTP, SCP, or your preferred file transfer method

    scp payloadcms.zip root@your-server-ip:/var/www/
  2. Unzip the Project Once uploaded

    cd /var/www/
    sudo unzip payloadcms.zip -d payloadcms
  3. Navigate to the Project Directory

    cd /var/www/payloadcms
  4. Start the Application Using Docker

    sudo docker compose build up -d
  5. Verify Containers are Running

    sudo docker ps

    You should see containers for:

    • payloadcms-web (Next.js app)
  6. Access the Application

    http://yourdomain.com
    You will be automatically redirected to the Onboarding Page.
    Success
    • Your Payload CMMS app is now successfully installed and running in a secure, Dockerized environment.
  7. Create Admin Acoount

    Onboarding

    From Here, you can create your first user account, which will be assigned administrator privileges.