wzdwc / TexasPokerGame

This is an online Texas Hold'em game, base on TypeScript,egg,node,vue,javascript
97 stars 53 forks source link

Installing on Ubuntu #2

Closed random9brat closed 2 years ago

random9brat commented 2 years ago

Hello wzdwc :),

Any chance of helping me install this on ubuntu? Im texas holdem poker fun and player, would love to see how this app works :)

Cheers.

wzdwc commented 2 years ago

The deployment is the same as CentOS, you can follow the README step by step(client,server)

random9brat commented 2 years ago

Hey, thanks for the reply :)

I think i have run server in the background on 7001 and i installed client which created me dist folder (i pointed nginx to that index.html file). I got my redis and mysql setup but when i connect to a client and try to create a account in register page it writes me this:

4444

Any chances you know what should i do? I would appreciate a lot any kind of help ;)

wzdwc commented 2 years ago

In "/client/src/utils/origin.ts" .

export default { url: process.env.NODE_ENV !== 'production' ? process.env.NODE_ENV === 'develop' ? 'http://172.22.72.70:7001' : 'http://127.0.0.1:7001' : 'http://www.jojgame.com:7001', res: location.href.split('#')[0] + '#', }; http://www.jojgame.com == your domain