Can I install it on my own server?
suyuan168 opened this issue · 7 comments
Can I install it on my own server?
Assuming you have Yarn installed, all you need to do is
Development
yarn install
yarn dev:server
in one terminalyarn dev:client
in another terminal- The server runs on port 4000 and the client on port 3000 (make sure both ports are available)
- Open app at http://localhost:3000/
Production (you probably want this on your server)
yarn install
yarn build
yarn start
- Entire app runs on port 300
- I use Nginx to proxy port 80 to port 3000
thank you very much. Can the server and client be on the same server?
thank you very much. Can the server and client be on the same server?
Updated my initial comment
thank you very much. Can the server and client be on the same server?
Updated my initial comment
thank you very much.
hello~How to update the homepage data by setting up a server by myself? How often it will be updated.
This game is great. Thank you for your project.
hello~How to update the homepage data by setting up a server by myself? How often it will be updated.
This game is great. Thank you for your project.
You mean the stats? They update in real time.
To get the stats going on your server you need a Firebase account to use the Firebase Realtime database (free). You need to do two things:
- Set the
FIREBASE_SERVICE_ACCOUNT
environment variable when starting Flatris. It's picked up automatically here. More info related to Firebase credentials and service accounts here and here. - Change the
databaseURL
to your own instance. It's currently hardcoded tohttps://flatris-forever.firebaseio.com
, which is the official db for flatris.space.
Good luck!
hi,how to change the port?