Undo Podman changes
parent
8ef39ffe48
commit
9474a516ac
@ -1,26 +1,26 @@
|
|||||||
run:
|
run:
|
||||||
podman-compose --env-file=stack.env up -d
|
docker-compose --env-file=stack.env up -d
|
||||||
|
|
||||||
build:
|
build:
|
||||||
podman-compose --env-file=stack.env build
|
docker-compose --env-file=stack.env build
|
||||||
|
|
||||||
stop:
|
stop:
|
||||||
podman-compose --env-file=stack.env down
|
docker-compose --env-file=stack.env down
|
||||||
|
|
||||||
log:
|
log:
|
||||||
podman-compose --env-file=stack.env logs -f
|
docker-compose --env-file=stack.env logs -f
|
||||||
|
|
||||||
test:
|
test:
|
||||||
podman-compose --env-file=stack.env run -e LIVE=$(LIVE) --rm app sh -c ". /venv/bin/activate && python manage.py test $(MODULES) -v 2"
|
docker-compose --env-file=stack.env run -e LIVE=$(LIVE) --rm app sh -c ". /venv/bin/activate && python manage.py test $(MODULES) -v 2"
|
||||||
|
|
||||||
migrate:
|
migrate:
|
||||||
podman-compose --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py migrate"
|
docker-compose --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py migrate"
|
||||||
|
|
||||||
makemigrations:
|
makemigrations:
|
||||||
podman-compose --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py makemigrations"
|
docker-compose --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py makemigrations"
|
||||||
|
|
||||||
auth:
|
auth:
|
||||||
podman-compose --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py createsuperuser"
|
docker-compose --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py createsuperuser"
|
||||||
|
|
||||||
token:
|
token:
|
||||||
podman-compose --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py addstatictoken m"
|
docker-compose --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py addstatictoken m"
|
||||||
|
@ -1,6 +1,14 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
|
import stripe
|
||||||
|
from django.conf import settings
|
||||||
|
|
||||||
os.environ["DJANGO_ALLOW_ASYNC_UNSAFE"] = "true"
|
os.environ["DJANGO_ALLOW_ASYNC_UNSAFE"] = "true"
|
||||||
# from redis import StrictRedis
|
# from redis import StrictRedis
|
||||||
|
|
||||||
# r = StrictRedis(unix_socket_path="/var/run/redis/redis.sock", db=0)
|
# r = StrictRedis(unix_socket_path="/var/run/redis/redis.sock", db=0)
|
||||||
|
|
||||||
|
if settings.STRIPE_TEST:
|
||||||
|
stripe.api_key = settings.STRIPE_API_KEY_TEST
|
||||||
|
else:
|
||||||
|
stripe.api_key = settings.STRIPE_API_KEY_PROD
|
||||||
|
Loading…
Reference in New Issue