a year ago
I did everything according to the documentation
https://docs.medusajs.com/deployments/server/deploying-on-railway
Then I went into the console and wrote
-railway login
-railway link
I chose the project I needed and its GitHub repository
wrote
railway shell
And entered the command from the documentation
railway run npx medusa user --email admin@medusa-test.com --password supersecret
but nothing happens since all this happens locally as I understand it.
I am sure that this should work, I saw people here who work with this framework and set up a password.
0 Replies
a year ago
you have a error printout, please get that sorted
I took a workaround by adding this command.
She actually created the records that I needed.
But as I understand it, I have no connection with the database and radish.
Could you help me with this?
When I created the project I used the variables in the 2nd image
But I have these messages in the 3rd image
a year ago
going forward please do not treat either the build or start command fields as just a place to run any arbitrary command, that is far from the proper use. you would have wanted to run that command locally though either railway run
or railway shell
a year ago
moving on
OK, thank you.
But now I have entries in the database but cannot log in using the created password and user.
Problems connecting to the database?
a year ago
your service variables look correct, but that doesn't mean those are the exact variables you are using in your code, so please show me how you are connecting to postgres in your code (we are going to work on one database at a time)
a year ago
have you printed these environment variables to make sure they are correct?
a year ago
console.log
a year ago
something is misconfigured somewhere, try to console log the environment variables
Okay, I'll try now.
But shouldn't there be an error here?
writes that Database initialized
a year ago
somewhere redis is not configured
yes, I can configure it after.
The local project was without redis and all database connections worked
a year ago
where are the postgres related errors?
I don't see them
And I don’t understand why I can’t log in with my username and password.
Which are already in the database
a year ago
how have you confirmed that?
a year ago
im not sure how that quite answers the question
If I have entries in the data and these messages
So the database is connected, right?@Brody
a year ago
it means migrations have been ran