Keyboard shortcuts

Press ← or β†’ to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help


description: Learn how to deploy aimicromind on Railway

Railway


  1. Click the following prebuilt template
  2. Click Deploy Now
  1. Change to your preferred repository name and click Deploy
  1. If succeeds, you should be able to see a deployed URL
  1. To add authorization, navigate to Variables tab and add:
  • AIMICROMIND_USERNAME
  • AIMICROMIND_PASSWORD
  1. There are list of env variables you can configure. Refer to environment-variables.md

That's it! You now have a deployed aimicromind on Railway πŸŽ‰πŸŽ‰

Persistent Volume

The default filesystem for services running on Railway is ephemeral. aimicromind data isn’t persisted across deploys and restarts. To solve this issue, we can use Railway Volume.

To ease the steps, we have a Railway template with volume mounted: https://railway.app/template/nEGbjR

Just click Deploy and fill in the Env Variables like below:

  • DATABASE_PATH - /opt/railway/.aimicromind
  • APIKEY_PATH - /opt/railway/.aimicromind
  • LOG_PATH - /opt/railway/.aimicromind/logs
  • SECRETKEY_PATH - /opt/railway/.aimicromind
  • BLOB_STORAGE_PATH - /opt/railway/.aimicromind/storage

Now try creating a flow and save it in AiMicromind. Then try restarting service or redeploy, you should still be able to see the flow you have saved previously.