#Hosted medusa server env variables

4 messages · Page 1 of 1 (latest)

minor agate
#

While migrating versions in medusa I added some TYPEORM... env vars
should I add those in the environment variables in railway?

TYPEORM_CONNECTION, TYPEORM_URL, TYPEORM_LOGGING=true, TYPEORM_USERNAME, TYPEORM_PASSWORD, TYPEORM_DATABASE
TYPEORM_ENTITIES=./node_modules/@medusajs/medusa/dist/models/.js
TYPEORM_MIGRATIONS=./node_modules/@medusajs/medusa/dist/migrations/
.js

ionic temple
#

If it's a fresh database, then no.
If it's a database with already existing stuff, then yes. You need to run migrations scripts, for instance create a default sales channel and attach each product to channel.

#

If you have existing gift cards, than there were some migrations for that too not so long ago.

minor agate
#

It is fresh rn but after a while when I migrate to a newer medusa version I guess I would have to add them or other env vars as the migration guide suggests