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