2024-01-30 11:32:02 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# launch a couple of local instances to test federation
|
2024-01-30 15:06:02 +00:00
|
|
|
# sometimes ctrl+c doesnt work properly, so you have to kill trunk, cargo-watch and ibis manually
|
2024-01-30 11:32:02 +00:00
|
|
|
# TODO: somehow instances use wrong port resulting in cors errors
|
|
|
|
(trap 'kill 0' SIGINT;
|
|
|
|
sh -c 'TRUNK_SERVE_PORT=8070 IBIS_BACKEND_PORT=8071 IBIS_DATABASE_URL="postgres://ibis:password@localhost:5432/ibis" ./scripts/watch.sh' &
|
|
|
|
sh -c 'TRUNK_SERVE_PORT=8080 IBIS_BACKEND_PORT=8081 ./scripts/watch.sh' &
|
|
|
|
sh -c 'TRUNK_SERVE_PORT=8090 IBIS_BACKEND_PORT=8091 ./scripts/watch.sh'
|
|
|
|
)
|