Skip to main content

Overview

Geos is deployed using PM2 process manager on all nodes.

PM2 Commands

Check running processes:
Stop all processes:
Restart all processes:
View admin panel logs:

Database Access

To access the MySQL database:
Always use transactions and set autocommit to false when working with the database:

Deploying Server and Indexer

To deploy the server and indexer services on geos-02 and geos-03:
  1. SSH into the node:
  2. Switch to deployer user:
  3. Navigate to the geos directory:
  4. Start the server (port 3000):
  5. Start the indexer (port 4000):
  6. Verify services are running:
The -f flag forces PM2 to start the process even if it’s already running. Use this when redeploying or restarting services.

Cache Refresh

To refresh Geos cache, you need to update the search API (Apache Solr) and refresh the cache on both server nodes (geos-02 and geos-03). See FAQ: How to refresh Geos cache? for detailed instructions.