R
Railwayβ€’2y ago
GetPsyched

How does Railway use THE button create a repo from a modified root of the template?

19 Replies
Percy
Percyβ€’2y ago
Project ID: N/A
GetPsyched
GetPsychedOPβ€’2y ago
I am mostly referring to the underlying git commands or any similar alternative that is used. I am attempting to create a template repo for Railway with /basic and /advanced versions. Although this works for Railway (thanks to the root directory override), I'm unsure how to make this work for non-Railway users simply using my template directly. I mean, not just users who don't use the button. But people who just do not want to use Railway entirely.
Brody
Brodyβ€’2y ago
they would just fork the repo and work on whatever version they wanted, deleting the basic directory if it's not needed
GetPsyched
GetPsychedOPβ€’2y ago
Ah, my last resort ;-; So, it will just be something like this?
gh repo create --template my-repo
mv my-repo/basic new-repo-name
mv my-repo/.git new-repo-name/.git
rm -r my-repo
cd new-repo-name
gh repo create --template my-repo
mv my-repo/basic new-repo-name
mv my-repo/.git new-repo-name/.git
rm -r my-repo
cd new-repo-name
Brody
Brodyβ€’2y ago
yeah just use the directoy you want, at that point it's just folders on a computer
GetPsyched
GetPsychedOPβ€’2y ago
True. I just wanted to reduce the number of setup instructions, that's it
Brody
Brodyβ€’2y ago
to reduce the setup, make them separate repos
GetPsyched
GetPsychedOPβ€’2y ago
Unfortunate that GitHub doesn't provide an option to override the root dir
Brody
Brodyβ€’2y ago
being able to deploy from a specific directory is a luxury of railway
GetPsyched
GetPsychedOPβ€’2y ago
Not really pedagogical, IMO. Linking users to a separate repo from the README? I'd rather increase my setup instructions a tiny bit haha True Good stuff
Brody
Brodyβ€’2y ago
I mean, I know of other PAAS platforms that allow you to set a root directory too so, luxury of PAAS platforms**
GetPsyched
GetPsychedOPβ€’2y ago
Them being? SourceHut I assume? πŸ€”
Brody
Brodyβ€’2y ago
never heard of it
GetPsyched
GetPsychedOPβ€’2y ago
Ouch lol
Brody
Brodyβ€’2y ago
I'm a railway shill for the time being πŸ˜‰
angelo
angeloβ€’2y ago
I have We wanna link to other Git hosts but we need to get our anti-fraud game up
GetPsyched
GetPsychedOPβ€’2y ago
Oh, I thought you were referring to PAAS platforms similar to GitHub
angelo
angeloβ€’2y ago
root dir was intended for monorepos
GetPsyched
GetPsychedOPβ€’2y ago
Yeah, that's what mine would become. anti-fraud 😳 It would be nice if you linked SourceHut since it allows creating multiple git repositories under one project (which fits my use-case perfectly). Looking forward to it!
Want results from more Discord servers?
Add your server