Is it possible to host Unity project?

I have a unity game development project which runs C# Since I already use railway for my other projects I would like to host this unity as well, is it possible?
17 Replies
Percy
Percyβ€’9mo ago
Project ID: N/A
josh
joshβ€’9mo ago
can your game run on the web without railway if so, yes
ojoaoguilherme
ojoaoguilhermeβ€’9mo ago
Technically, some providers access the unity project and compiles into webGL than its hosted as html and everything that is needed to work so yes, it runs on the web but not just deploy the unity... I think their would need a workflow to work with railway
josh
joshβ€’9mo ago
you would probably need to use a custom dockerfile that can do it for you
josh
joshβ€’9mo ago
or you know, maybe not actually as this is through the UI - you might need some kind of CI that does it for you
josh
joshβ€’9mo ago
Gist
Unity command line script to build WebGL player
Unity command line script to build WebGL player. GitHub Gist: instantly share code, notes, and snippets.
ojoaoguilherme
ojoaoguilhermeβ€’9mo ago
thanks gonna have a look
LaCrak27
LaCrak27β€’9mo ago
hey, for hosting a static site (a unity webgl project) railway is not optimal, i'd look into other static site hostings like vercel or netlify, as much as i love railway, it is more intended for stuff that needs a central machine, like backend servers, and not so much static site hosting
ojoaoguilherme
ojoaoguilhermeβ€’9mo ago
I see, thanks for the suggestion
LaCrak27
LaCrak27β€’9mo ago
np :) if you need any more help about hosting a unity webgl build, hmu, i have experience
ojoaoguilherme
ojoaoguilhermeβ€’9mo ago
I’ll definitely let you know if I have any problems on that, thanks for the help πŸ™‚
alexbalandi
alexbalandiβ€’9mo ago
Could you expand on this? πŸ‘€ I'm curious about the downsides
LaCrak27
LaCrak27β€’9mo ago
You got me in a sticky situation atm, but I will expand when I get back home
ThallesComH
ThallesComHβ€’9mo ago
if @LaCrak27 don't mind saying, Vercel experience for Frontend is a lot better, they've CDN everywhere so your website loads a lot faster, plus they're totally free for hobby projects (you might not get that on Railway).
alexbalandi
alexbalandiβ€’9mo ago
Well, if CDN is the only concern, I feel i'm ok with just ignoring it / finding workarounds, but ye, I thought that might be one of the arguments
LaCrak27
LaCrak27β€’9mo ago
Yeah, essentially