Metru
Metru
Explore posts from servers
RRailway
Created by Metru on 11/7/2023 in #✋|help
Having trouble deploying a Surrealdb instance
Oh, that makes sense
43 replies
RRailway
Created by Metru on 11/7/2023 in #✋|help
Having trouble deploying a Surrealdb instance
Does the generated port not work with dockerfiles though?
43 replies
RRailway
Created by Metru on 11/7/2023 in #✋|help
Having trouble deploying a Surrealdb instance
If its needed for railway to know what port you're using, wouldn't it make more sense for that to be in settings?
43 replies
RRailway
Created by Metru on 11/7/2023 in #✋|help
Having trouble deploying a Surrealdb instance
Okay so I removed the PORT for a sanity check. Adding the PORT variable is the thing that fixed it. But why?
43 replies
RRailway
Created by Metru on 11/7/2023 in #✋|help
Having trouble deploying a Surrealdb instance
Thanks for the help fellas!
43 replies
RRailway
Created by Metru on 11/7/2023 in #✋|help
Having trouble deploying a Surrealdb instance
Its one of those days is it?
43 replies
RRailway
Created by Metru on 11/7/2023 in #✋|help
Having trouble deploying a Surrealdb instance
Its now working, but technically, nothing changed?
43 replies
RRailway
Created by Metru on 11/7/2023 in #✋|help
Having trouble deploying a Surrealdb instance
I think I'm just dumb and I haven't been typing rpc
43 replies
RRailway
Created by Metru on 11/7/2023 in #✋|help
Having trouble deploying a Surrealdb instance
The $PORT in the docker file just doesn't want to be injected today error: invalid value '0.0.0.0:$PORT' for '--bind <LISTEN_ADDRESSES>': invalid socket address syntax
43 replies
RRailway
Created by Metru on 11/7/2023 in #✋|help
Having trouble deploying a Surrealdb instance
Oh as in an env var called PORT?
43 replies
RRailway
Created by Metru on 11/7/2023 in #✋|help
Having trouble deploying a Surrealdb instance
just specify a PORT service variable as 8000
Where/how do I do this? I'm pretty new to railway.
43 replies
RRailway
Created by Metru on 11/7/2023 in #✋|help
Having trouble deploying a Surrealdb instance
From what I understand docker will always use /bin/sh if not using array
43 replies
RRailway
Created by Metru on 11/7/2023 in #✋|help
Having trouble deploying a Surrealdb instance
Seems the array syntax is needed here
43 replies
RRailway
Created by Metru on 11/7/2023 in #✋|help
Having trouble deploying a Surrealdb instance
No description
43 replies
RRailway
Created by Metru on 11/7/2023 in #✋|help
Having trouble deploying a Surrealdb instance
So does this mean: Like this? CMD "start --bind 0.0.0.0:$PORT"
43 replies
RRailway
Created by Metru on 11/7/2023 in #✋|help
Having trouble deploying a Surrealdb instance
How should I wrte it out?
43 replies
RRailway
Created by Metru on 11/7/2023 in #✋|help
Having trouble deploying a Surrealdb instance
No description
43 replies
RRailway
Created by Metru on 11/7/2023 in #✋|help
Having trouble deploying a Surrealdb instance
Just for sanity, this is what I have now
FROM surrealdb/surrealdb:latest
EXPOSE 8000
CMD ["start", "--bind", "0.0.0.0:$PORT"]
FROM surrealdb/surrealdb:latest
EXPOSE 8000
CMD ["start", "--bind", "0.0.0.0:$PORT"]
43 replies
RRailway
Created by Metru on 11/7/2023 in #✋|help
Having trouble deploying a Surrealdb instance
Wheres $PORT being defined?
43 replies
RRailway
Created by Metru on 11/7/2023 in #✋|help
Having trouble deploying a Surrealdb instance
The surreal SDK will attempt to connect via http://localhost:8000/rpc which will then get upgraded to a ws connection
43 replies