server for words meaning and checks
Finally, after a couple of dozen (approximately on Friday) attempts to launch a managed server in Dart, it started working as it should.
The stack ended up like this: docker + pm2 + dart (serverpod) docker - for PostgreSQL pm2 - for managing the serverpod server instance serverpod - the actual server
The words and meanings are all mixed up, but it's a start:)
Several criteria were important:
- easy to start | stop
- easy to monitor the instance status
- configure it so that the server could reach the database on its own - this turned out to be a non-trivial task
I tried the several options:
Put it in Docker, run it in Docker via cmd, but here's the catch - since Postgre is in another container, you need to link the containers through a network. And there are a million nuances right away: specifically, serverpod has one config for everything at once - which is convenient and inconvenient because in the end you need to map the ports differently. In the end, I spent two days on this option and decided to discard it.
Then I moved to pm2, since it's very convenient in pm2 to monitor and start the running instances, but it didn't work out right away either, for example, it turned out to be easier to start via a terminal command than through a config.
An alternative to pm2 is standard Jobs in Linux, but Dart was constantly crashing in them.
Like the hashtag
Word by Word: Adventure
Write Words to Fly on Hot Air Balloon🏔️
Status | In development |
Author | arenukvern |
Genre | Educational |
Tags | Arcade, Multiplayer, offline, Pixel Art, Short, Singleplayer, Word game, words-per-minute, wordy |
Languages | English, Italian, Russian |
Accessibility | Interactive tutorial |
More posts
- menu keyboard controls44 days ago
- pixel drawer experiment47 days ago
- menu | ai challenge | weekly update51 days ago
- unexpected snowtime ⛄️ shader😃56 days ago
- studying shaders progress57 days ago
- menu: continue game buttons64 days ago
- points animation66 days ago
- focusable object clicking77 days ago
- weekly update (technologies)80 days ago
- adventure menu redesign88 days ago
Leave a comment
Log in with itch.io to leave a comment.