Add this in your ini file:
[alembic:exclude]
tables = spatial_ref_sys
In env.py
:
import re
#!/bin/bash | |
sudo add-apt-repository ppa:gophers/archive | |
sudo apt-get update | |
sudo apt-get -y install docker.io libpcap-dev python-virtualenv golang-1.10-go git | |
sudo usermod -aG docker $USER | |
# logout and login for groups to update | |
export GOPATH="$HOME/go" |
image: an-image-with-docker-and-docker-compose | |
variables: | |
DOCKER_TLS_VERIFY: "1" | |
DOCKER_CERT_PATH: ".docker" | |
before_script: | |
- mkdir -p $DOCKER_CERT_PATH | |
- echo "$DOCKER_CA" > $DOCKER_CERT_PATH/ca.pem | |
- echo "$DOCKER_CERT" > $DOCKER_CERT_PATH/cert.pem |
#!/bin/bash | |
index=$(date --date='14 days ago' +%Y.%m.%d) | |
curl -s -XDELETE "http://localhost:9200/filebeat-$index?pretty" |
Add this in your ini file:
[alembic:exclude]
tables = spatial_ref_sys
In env.py
:
import re
#!/bin/bash | |
PROGNAME=${0##*/} | |
INPUT='' | |
QUIET='0' | |
NOSTATS='0' | |
max_input_size=0 | |
max_output_size=0 | |
usage() |
from celery import chain | |
from django.core.management.base import BaseCommand | |
from . import tasks | |
class Command(BaseCommand): | |
def handle(self, *args, **kwargs): |