-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
Admin panel upgrade server updates #54
Merged
patapancakes
merged 14 commits into
pagefaultgames:master
from
Opaque02:admin-panel-updates
Oct 17, 2024
Merged
Admin panel upgrade server updates #54
patapancakes
merged 14 commits into
pagefaultgames:master
from
Opaque02:admin-panel-updates
Oct 17, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
flx-sta
reviewed
Sep 27, 2024
…and a conversion to allow string outputs instead of sql.NullStrings
10 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What is this?
This is an update to the admin panel, and is the server code for this pokerogue PR.
What this do?
This PR add the functionality for the server to a) check if a username exists, b) link/unlink google accounts from usernames, and unlink discord accounts from usernames and c) return an admin search object for the admin panel that consists of a username, discord ID, google ID and last logged in date.
How to test the changes:
You need to set up your own server and pull this PR. Any questions with that, ask me in discord, or ask Walker, though we have this thread in discord that we used to get things set up - it's a lot of info but it should have a lot of troubleshooting steps that we did to get it working.
Once your server is set up, make sure you also have access to the DB. I'm using MySQLWorkbench to let me see the db, but you can use anything as long as it can connect to a maria DB instance.
Once everything is set up, in your server, you'll need to change the some files. If you would like to see any of these in action, you can check some previous commits to see what I used to have for my testing, since I committed my testing changes:
First there's a file called beta.env in the main project folder that looks like this:
Here I've used {serverIP} in a few places and {devMachineIP} for the gameurl - for me, my server machine and my dev machine are two different machines, so my gameurl is a different IP compared to my server IP. However, if this is not the case, you should be able to use your dev machine's IP for all cases of devMachineIP and serverIP instead.
Next, in your docker-compose.Example.yml, under services->server add the following code:
This makes the game use your beta.env file from above, and also makes sure to pull the edited version of rogueserver instead of master branch. Finally, add the following to services->db:
This makes sure the DB is using the right port.
To run it, open a cmd at the location of your rogueserver folder and run this code:
This will build the server using the code provided. Once that's done, use this code to set everything up using the docker-compose file we updated before:
Hopefully if you go to run it, all 3 parts will be good, and going into the server to see the logs will show you the daily seed (see below):