#Not able to have - in Service name?

84 messages · Page 1 of 1 (latest)

forest fossil
#

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.

wanton acornBOT
#

Project ID: dd3f96f7-3ab3-4453-86a3-32328b2f81d6

haughty marshBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

forest fossil
#

dd3f96f7-3ab3-4453-86a3-32328b2f81d6

soft halo
#

i can have dashes in my services that are created by code

forest fossil
#

hmm

#

can you make it like

#

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 -

soft halo
#
Name: fmt.Sprintf("test-%s.something.com", tools.RandString(5))
forest fossil
#

weird

#

ok

soft halo
#

are you still using pointers?

forest fossil
#

yeah but that shouldn't affect it

soft halo
#

but i said you shouldnt use pointers 🙂

forest fossil
#

why lol

soft halo
#

they arent needed when you use my fork

forest fossil
#

i can't use your fork because you're not going to maintain that library 😦

soft halo
#

is the original library even maintained?

#

last release was may 6th

forest fossil
soft halo
#

last commit was aug 1st

forest fossil
#

i dont think you wanna be maintainer for this >.< it's great you fixed it though

soft halo
#

okay you fork it, just please stop using string pointers

forest fossil
#

but like, looking after this code is a comitment

forest fossil
soft halo
#

why else does my code work lol

forest fossil
#

i'll find out soon lol, gonna debug ❤️

forest fossil
#

ok so this deployed via api fine

soft halo
#

since you are dealing with service names I think I should mention that service names have a character limit of 32

forest fossil
#

ty

#

good to know

#

maybe I'll just use the non .wikid.app extension

#

boom

#

this deployed fine also

soft halo
#

yay

forest fossil
#

so strange lol, working now

#

I think maybe it was the 32 character limit

soft halo
#

I have that effect

forest fossil
#

LOL

haughty marshBOT
forest fossil
#

hehe

#

ty brody

soft halo
#

your welcome 🙂

forest fossil
#

odd one here @soft halo ...

#

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

soft halo
#

lol

forest fossil
#

i tell ya, building the smol terraformer has been a smol educaiton in railway 😄

soft halo
#

hey you stole my name

forest fossil
#

webhook build status working!

#

webhook brody!

#

boom

#

ok lets trigger a github build... fingers crossed

#

yay working

soft halo
#

woohoo

forest fossil
#

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

soft halo
#

yeah the hot server is a good idea

forest fossil
#

^.^

#

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

soft halo
#

yep thats correct

forest fossil
#

i guess i could just ignore that one

soft halo
#

true true

forest fossil
#

im so bad at spelling some days