-
Notifications
You must be signed in to change notification settings - Fork 394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setting up a production instance #7516
Comments
So my process is:
I think this should do everything you want. |
Thanks for providing these steps. I will try them and report back. |
oh, as a follow-up: you might find that only local or https connections work. |
Here is what's done with a fresh clone
and I have the db running (that one is not a fresh instance, though). I can see that the visual warning that shadow-cljs is now gone. That is good! However, I am still getting 404s for the images. Somewhat that seems expected since the cards are explicitly excluded from the uberjar build in
Good to know.
Yeah, it was my intention to set up nginx as a reverse-proxy. Could it be that the images are also served by this nginx server in your prod setup? |
Setting up a simple reverse proxy is working great. @NBKelly shall I start a draft PR with some documentation and docker files? |
|
Thanks for the tip @NoahTheDuke. I've integrated it in my build steps. |
Yeah, that would be pretty helpful - feel free to do so if you like |
Our local play-group was using these instructions to set up an instance for ourselves to use. In doing so, we found a couple of discrepancies with the instructions, and additionally a blocker or two that we had to overcome. These probably need to be addressed before going live.
This last step is probably simply my inexperience with Web-App Devops, but figured I'd list it here in case it has something to do with how the server is being stood up. |
@cody1024d
|
@Shadow-Night-Black Thank you for the additional info!! I knew it had to do with line endings! I tried to open it within an editor in windows, and change the line endings manually, and it didn't work; but I'm sure I just did something silly. As for #4 --- this is my lack of webdev showing for sure haha. Is this something that is the default behavior for a secure cookie? That they will only work locally if no SSL cert is loaded? |
@cody1024d No problem :) For 4), yes. Secure cookies are only ever sent to the server over https (except on local host) see here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies if you want more information. |
I am looking into setting up a production for my own testing. I have a couple of questions regarding the approach used by jinteki.net.
What I have done so far is to build the uberjar with a prod.edn defined in the resources folder which gets embedded into the jar. I am planning to set up a webserver to serve the static files, those below resources/public.
Is it approximately what is done on jinteki.net?
Also, do you bundle the prod.edn file into the jar? I would think that is better to have it outside to allow managing the configuration independently.
Finally, I have a visual warning that shadow-cljs is not able to connect. I am surprised by this as I would assume that the server/mode prod would disable shadow-cljs entirely.
Thanks in advance for the help.
I will be happy to write to documentation once my setup is working.
p.s.: I will accept a RTFM :-)
The text was updated successfully, but these errors were encountered: