iseiaki
iseiaki
RRailway
Created by iseiaki on 10/14/2023 in #✋|help
connect: connection timed out
connection timed out when I try to connect to the mysql database that I setup on railway. I'm using golang.
db, err := gorm.Open("mysql", "username:password@tcp(containers-us-west-62.project.app:port)/db")
if err != nil {
panic(err)
}
defer db.Close()
db, err := gorm.Open("mysql", "username:password@tcp(containers-us-west-62.project.app:port)/db")
if err != nil {
panic(err)
}
defer db.Close()
what could be wrong?
41 replies
RRailway
Created by iseiaki on 8/25/2023 in #✋|help
volume
hey guys! quick question, I've got a golang project. I need it to create a json file on railway and then put some json data into it (later read it too), is that possible with mounting the volume or not? if so, how?
9 replies
RRailway
Created by iseiaki on 8/16/2023 in #✋|help
file I/O on railway
I've got a Go script hosted on railway which creates a text file called data.txt and appends some data to it. this script is hosted from github. when I run it successfully runs and prints whatever it needs to print to the deploy terminal but the question is, where should I see the data.txt that has content in it? it isn't present in my github repo. but I know for a fact it successfully runs somewhere.
19 replies