mirror of
https://github.com/timokz/flutter-vienna-hackathon-25.git
synced 2025-11-08 21:04:20 +01:00
tl;dr: Since the server is in both the postgres instance's isolated "backend" network and the public-facing "docker-net", traefik unfortunately happened to decide to use the "backend" network for its proxying purposes. This led to the server not being reachable at all. This commit fixes that by explicitly telling traefik which network to use. Signed-off-by: Max R. Carrara <max@aequito.sh> |
||
|---|---|---|
| .. | ||
| bin | ||
| config | ||
| deploy | ||
| env.d | ||
| lib | ||
| migrations | ||
| test/integration/test_tools | ||
| web | ||
| .env.template | ||
| .gcloudignore | ||
| .gitignore | ||
| analysis_options.yaml | ||
| CHANGELOG.md | ||
| dart_test.yaml | ||
| docker-compose.deploy.yaml | ||
| docker-compose.local.yaml | ||
| Dockerfile | ||
| Makefile | ||
| pubspec.lock | ||
| pubspec.yaml | ||
| README.md | ||
wien_talks_server
Local Development Environment
Setting up a local postgres container, run the following:
make local
This will first create an .env file with default values and then launch the
container.
You can then launch the Serverpod server like so:
dart bin/main.dart
If your database schema isn't initialized yet, you will have to run the following:
dart bin/main.dart --apply-migrations
See the Makefile for all targets.
Passwords
The password used in your environment files (.env for local development and
env.d/postgres.env.template for deployment) must correspond to the password in
config/passwords.yaml.
The config/passwords.yaml file must be created manually at the moment; for
example:
development:
database: your-password-here