Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Untitled1 enable local backend development #3

Merged
merged 5 commits into from
Feb 26, 2023

Conversation

atemate
Copy link
Collaborator

@atemate atemate commented Feb 26, 2023

Add the following functionality:

Running the code locally, Redis in Docker

For local development.

Install Python dependencies locally:

$ sh /install-local.sh  # compiles frontend, installs backend dependencies

Run local Redis in docker, but execute code locally so that code changes are reloaded automatically:

$ sh run-local.sh   # runs Redis in local docker, runs code in local environment without docker

If you don't have command docker compose but have docker-compose, do export DOCKER_COMPOSE="docker-compose" prior to run-local.sh.

@@ -1,4 +1,5 @@
#!/bin/sh
set -eux
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

abort if any command fails, print all commands to be executed, disallow unset vars

Comment on lines +13 to +17
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 3s
timeout: 5s
retries: 5
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wait for container to be up and running

@atemate atemate merged commit 220b7d3 into main Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant