Mirror of https://github.com/roostorg/coop github.com/roostorg/coop
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update port 5000 to 9876 to avoid conflict with macOS Monterey or later (#99)

* Update port 5000 to 9876 to avoid conflict with macOS Monterey or later

* Updated Migration Command

---------

Co-authored-by: Mac <mac@Macs-MacBook-Pro.local>

authored by

mac-df
Mac
and committed by
GitHub
2fc1e267 2ef16fda

+5 -5
+1 -1
docker-compose.yaml
··· 86 86 - POSTGRES_DB=postgres 87 87 - POSTGRES_HOST=postgres 88 88 ports: 89 - - '5000:5000' 89 + - '9876:9876' 90 90 depends_on: 91 91 - postgres 92 92
+1 -1
docs/DEVELOPMENT.md
··· 169 169 ## HMA Development 170 170 HMA is not started automatically with `npm run up`. Start it separately if you're doing hash matching: `docker compose up --build -d hma` 171 171 172 - HMA is pre-configured in `server/.env` with `HMA_SERVICE_URL=http://localhost:5000`. No additional environment setup is needed for local development. 172 + HMA is pre-configured in `server/.env` with `HMA_SERVICE_URL=http://localhost:9876`. No additional environment setup is needed for local development. 173 173 174 174 ### Image URL Accessibility 175 175 When submitting items to Coop, image URLs must be reachable by the HMA Docker container and not just your browser or the Node.js server.
+1 -1
hma/local-entrypoint.sh
··· 4 4 MIGRATION_COMMAND=1 flask --app OpenMediaMatch.app db upgrade --directory OpenMediaMatch/migrations 5 5 6 6 # Start the Flask application 7 - MIGRATION_COMMAND=0 flask --app OpenMediaMatch.app run --host=0.0.0.0 --debug 7 + MIGRATION_COMMAND=0 flask --app OpenMediaMatch.app run --host=0.0.0.0 --port=9876 --debug
+1 -1
server/.env.example
··· 32 32 SNOWFLAKE_DB_NAME=MY_DEV_DB 33 33 SNOWFLAKE_ACCOUNT= 34 34 35 - HMA_SERVICE_URL=http://localhost:5000 35 + HMA_SERVICE_URL=http://localhost:9876 36 36 37 37 # Kafka authentication info. 38 38 KAFKA_BROKER_HOST=localhost:29092
+1 -1
server/services/hmaService/index.ts
··· 37 37 private readonly fetchHTTP: Dependencies['fetchHTTP'], 38 38 kyselyPg: Dependencies['KyselyPg'] 39 39 ) { 40 - this.hmaServiceUrl = process.env.HMA_SERVICE_URL ?? 'http://localhost:5000/'; 40 + this.hmaServiceUrl = process.env.HMA_SERVICE_URL ?? 'http://localhost:9876/'; 41 41 this.hashBankService = new HashBankService(kyselyPg); 42 42 } 43 43