simplify folder structure

This commit is contained in:
Tao Bror Bojlén 2019-02-21 10:26:55 +00:00
parent e33c70fa25
commit 1b11c70430
No known key found for this signature in database
GPG Key ID: C6EC7AAB905F9E6F
30 changed files with 7 additions and 13 deletions

4
.gitignore vendored
View File

@ -1,8 +1,8 @@
*.csv
.idea/
backend/api/backend/static/
backend/backend/static/
*.gexf
backend/api/backend/whitelist.txt
backend/backend/whitelist.txt
data/
# Byte-compiled / optimized / DLL files

View File

@ -1,3 +0,0 @@
from django.test import TestCase
# Create your tests here.

View File

@ -1,3 +0,0 @@
from django.shortcuts import render
# Create your views here.

View File

@ -24,7 +24,7 @@ SEED = 'mastodon.social'
TIMEOUT = 20 # seconds
NUM_THREADS = 16 # roughly 40MB each
PERSONAL_INSTANCE_THRESHOLD = 5 # instances with < this many users won't be scraped
STATUS_SCRAPE_LIMIT = 5000
STATUS_SCRAPE_LIMIT = 1000
class Command(BaseCommand):

View File

@ -37,7 +37,7 @@ services:
- database_network
depends_on:
- letsencrypt
web:
django:
restart: always
volumes:
- gunicorn-socket:/var/gunicorn

View File

@ -11,7 +11,7 @@ services:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
web:
django:
environment:
# Set these in .env
- SECRET_KEY
@ -20,10 +20,10 @@ services:
- POSTGRES_DB
- DJANGO_SETTINGS_MODULE
- ENVIRONMENT=development
build: ./backend/api
build: ./backend
command: bash scripts/docker-entrypoint.sh
volumes:
- ./backend/api:/code
- ./backend:/code
ports:
- "8000:8000"
depends_on: