The prompt configuration is invalid: Available options can not be empty
In my terminal, when I run railway link to get access to my PG database, I make the two selections provided, but get the error above. Here is a copy paste from my terminal window:
I followed the instructions on https://docs.railway.app/develop/cli but clearly am not doing something right. Any help would be appreciated.
24 Replies
your project would need a service, otherwise there would be nothing to link to
So follow the instructions under "Add Database Service" correct?
correct
Feels like a catch-22
interesting
for now, just add a service to your project with the railway dashboard
ah! now i understand. i was supposed to add a database (service) to my project (ecom site), not create a database and then link it to my project. hopefully i'm wording those concepts correctly.
or wait, a project is more like a namespace inside of which are different services. is that the right way to look at it?
can you show me a screenshot of your project in railway?
this you mean?
yes, is this the same project you tried to link to?
initially i just created a postgres project with the intention of then linking it programatically to my project on github. the idea that a service belongs to a project wasn't clear to me.
what did you have in this project that you tried to link to
the database one?
fiery-mind
i had two separate projects, one a database and the other a node project
that was a database
what was in
fiery-mind
just a databaseyes
okay thank you, im going to be working with milo (cool rust dev) to fix these little edge cases
this video clarified for me what i needed to do
Wappler
YouTube
Database Connection with Railway
In this video, I will show you how to create a MySQL database without having to install a database server on your local system. For this, I will be using railway to store the database.
might be good if railway developed some similar videos. it was the aha i needed.
videos are very helpfull
thank you for your time, brody.
no problem 🙂
now fixed in https://github.com/railwayapp/cli/pull/461