R
Railway13mo ago
macwilko

Not able to have - in Service name?

Just testing creating services, and I noticed i'm not able to create services with - in the name by the API. I wanted to keep the service name the same as the FQN of the service.
No description
Solution:
so strange lol, working now
Jump to solution
55 Replies
Percy
Percy13mo ago
Project ID: dd3f96f7-3ab3-4453-86a3-32328b2f81d6
macwilko
macwilkoOP13mo ago
dd3f96f7-3ab3-4453-86a3-32328b2f81d6
Brody
Brody13mo ago
No description
Brody
Brody13mo ago
macwilko
macwilkoOP13mo ago
hmm can you make it like test-asdasd.something.com ? its weird because I mean, I've got the Domain created on DNSimple and the railway domain also it's the same string lol just the service name didn't like it when I had -
Brody
Brody13mo ago
Name: fmt.Sprintf("test-%s.something.com", tools.RandString(5))
Name: fmt.Sprintf("test-%s.something.com", tools.RandString(5))
No description
macwilko
macwilkoOP13mo ago
weird ok
Brody
Brody13mo ago
are you still using pointers?
macwilko
macwilkoOP13mo ago
yeah but that shouldn't affect it
Brody
Brody13mo ago
but i said you shouldnt use pointers 🙂
macwilko
macwilkoOP13mo ago
why lol
Brody
Brody13mo ago
they arent needed when you use my fork
macwilko
macwilkoOP13mo ago
i can't use your fork because you're not going to maintain that library 😦
Brody
Brody13mo ago
is the original library even maintained? last release was may 6th
macwilko
macwilkoOP13mo ago
No description
Brody
Brody13mo ago
last commit was aug 1st
macwilko
macwilkoOP13mo ago
i dont think you wanna be maintainer for this >.< it's great you fixed it though
Brody
Brody13mo ago
okay you fork it, just please stop using string pointers
macwilko
macwilkoOP13mo ago
but like, looking after this code is a comitment i don't think that has much to do with - and service names surely 😄
Brody
Brody13mo ago
why else does my code work lol
macwilko
macwilkoOP13mo ago
i'll find out soon lol, gonna debug ❤️ ok so this deployed via api fine https://asdasdasd.wikid.app/metrics
Brody
Brody13mo ago
since you are dealing with service names I think I should mention that service names have a character limit of 32
macwilko
macwilkoOP13mo ago
ty good to know maybe I'll just use the non .wikid.app extension
macwilko
macwilkoOP13mo ago
No description
macwilko
macwilkoOP13mo ago
boom https://boop-bopp.wikid.app this deployed fine also
Brody
Brody13mo ago
yay
macwilko
macwilkoOP13mo ago
No description
Solution
macwilko
macwilko13mo ago
so strange lol, working now
macwilko
macwilkoOP13mo ago
I think maybe it was the 32 character limit
Brody
Brody13mo ago
I have that effect
macwilko
macwilkoOP13mo ago
LOL
macwilko
macwilkoOP13mo ago
hehe ty brody
Brody
Brody13mo ago
your welcome 🙂
macwilko
macwilkoOP13mo ago
odd one here @Brody ... the services don't seem to pickup the GitHub pushes trigger so like, if I do git push, it should trigger a redeploy oh wait... hold on... actually might be my bug lol sorry one sec
Brody
Brody13mo ago
lol
macwilko
macwilkoOP13mo ago
i tell ya, building the smol terraformer has been a smol educaiton in railway 😄
Brody
Brody13mo ago
hey you stole my name
macwilko
macwilkoOP13mo ago
No description
macwilko
macwilkoOP13mo ago
webhook build status working! webhook brody!
macwilko
macwilkoOP13mo ago
No description
macwilko
macwilkoOP13mo ago
boom ok lets trigger a github build... fingers crossed
macwilko
macwilkoOP13mo ago
No description
macwilko
macwilkoOP13mo ago
yay working
Brody
Brody13mo ago
woohoo
macwilko
macwilkoOP13mo ago
i think one thing I'll do is keep a "hot" server waiting to deploy a service is taking about 4 minutes from cold (dns records / service creation) so what I can do is keep a shared community server going, and then after 4 minutes, redirect clients to their own service
Brody
Brody13mo ago
yeah the hot server is a good idea
macwilko
macwilkoOP13mo ago
^.^
macwilko
macwilkoOP13mo ago
scratch that, the webhook events don't always come in order lol
No description
macwilko
macwilkoOP13mo ago
or i guess, it removes the old version last which comes through as its final state
Brody
Brody13mo ago
yep thats correct
macwilko
macwilkoOP13mo ago
i guess i could just ignore that one
Brody
Brody13mo ago
true true
macwilko
macwilkoOP13mo ago
im so bad at spelling some days
No description
Brody
Brody13mo ago
me too, me too
Want results from more Discord servers?
Add your server