mreishus / spades

Multiplayer online spades card game written in Elixir, Phoenix, React, and Typescript.
https://starspades.com/
MIT License
17 stars 48 forks source link

how would this project get deployed? #381

Closed killsforaliving closed 9 months ago

killsforaliving commented 9 months ago

was wondering how would you deploy this repo and how the frontend and backend would still be linked ....

mreishus commented 9 months ago

When I deployed it, I used kubernetes which is complex can be overkill for only one application. In general the steps should be

Off the top of my head, I don't know how to do this with docker, but the info should be out there, or you can also change the nginx.conf line, or maybe write to /etc/hosts when building the frontend image. SO Link?. Maybe docker-compose makes this easy?

Something else you might want to check out is https://github.com/seastan/DragnCards , a fork of this project. Looks like it uses vagrant and it might have tweaked the whole setup, not really sure. I also uploaded my example kubernetes config but it probably won't be that useful because it's kubernetes and it's 4 years old. https://github.com/mreishus/spades/blob/master/example-k8s-config.txt

killsforaliving commented 9 months ago

Ummmm thanks I guess lol … it’s like you’re speaking Chinese (I’m a noob) but I’ll Figure it out …

mreishus commented 9 months ago

Well, I do feel this project ended up on the overcomplicated side. If I rewrote it again, I would probably do it all in phoenix live view with only one repository. I'd say definitely stay away from kubernetes if you're a noob, but figuring out how to run two docker images and have them talk to each other could be a worthy goal in learning about sysadmin and networking.