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
Percy9mo ago
Project ID: dd3f96f7-3ab3-4453-86a3-32328b2f81d6
macwilko
macwilko9mo ago
dd3f96f7-3ab3-4453-86a3-32328b2f81d6
Brody
Brody9mo ago
No description
Brody
Brody9mo ago
macwilko
macwilko9mo 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
Brody9mo ago
Name: fmt.Sprintf("test-%s.something.com", tools.RandString(5))
Name: fmt.Sprintf("test-%s.something.com", tools.RandString(5))
No description
macwilko
macwilko9mo ago
weird ok
Brody
Brody9mo ago
are you still using pointers?
macwilko
macwilko9mo ago
yeah but that shouldn't affect it
Brody
Brody9mo ago
but i said you shouldnt use pointers 🙂
macwilko
macwilko9mo ago
why lol
Brody
Brody9mo ago
they arent needed when you use my fork
macwilko
macwilko9mo ago
i can't use your fork because you're not going to maintain that library 😦
Brody
Brody9mo ago
is the original library even maintained? last release was may 6th
macwilko
macwilko9mo ago
No description
Brody
Brody9mo ago
last commit was aug 1st
macwilko
macwilko9mo ago
i dont think you wanna be maintainer for this >.< it's great you fixed it though
Brody
Brody9mo ago
okay you fork it, just please stop using string pointers
macwilko
macwilko9mo 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
Brody9mo ago
why else does my code work lol
macwilko
macwilko9mo ago
i'll find out soon lol, gonna debug ❤️ ok so this deployed via api fine https://asdasdasd.wikid.app/metrics
Brody
Brody9mo ago
since you are dealing with service names I think I should mention that service names have a character limit of 32
macwilko
macwilko9mo ago
ty good to know maybe I'll just use the non .wikid.app extension
macwilko
macwilko9mo ago
No description
macwilko
macwilko9mo ago
boom https://boop-bopp.wikid.app this deployed fine also
Brody
Brody9mo ago
yay
macwilko
macwilko9mo ago
No description
Solution
macwilko
macwilko9mo ago
so strange lol, working now
macwilko
macwilko9mo ago
I think maybe it was the 32 character limit
Brody
Brody9mo ago
I have that effect
macwilko
macwilko9mo ago
LOL
macwilko
macwilko9mo ago
hehe ty brody
Brody
Brody9mo ago
your welcome 🙂
macwilko
macwilko9mo 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
Brody9mo ago
lol
macwilko
macwilko9mo ago
i tell ya, building the smol terraformer has been a smol educaiton in railway 😄
Brody
Brody9mo ago
hey you stole my name
macwilko
macwilko9mo ago
No description
macwilko
macwilko9mo ago
webhook build status working! webhook brody!
macwilko
macwilko9mo ago
No description
macwilko
macwilko9mo ago
boom ok lets trigger a github build... fingers crossed
macwilko
macwilko9mo ago
No description
macwilko
macwilko9mo ago
yay working
Brody
Brody9mo ago
woohoo
macwilko
macwilko9mo 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
Brody9mo ago
yeah the hot server is a good idea
macwilko
macwilko9mo ago
^.^
macwilko
macwilko9mo ago
scratch that, the webhook events don't always come in order lol
No description
macwilko
macwilko9mo ago
or i guess, it removes the old version last which comes through as its final state
Brody
Brody9mo ago
yep thats correct
macwilko
macwilko9mo ago
i guess i could just ignore that one
Brody
Brody9mo ago
true true
macwilko
macwilko9mo ago
im so bad at spelling some days
No description
Brody
Brody9mo ago
me too, me too