simplify folder structure
This commit is contained in:
parent
e33c70fa25
commit
1b11c70430
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -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
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
|
@ -1,3 +0,0 @@
|
|||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
|
@ -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):
|
|
@ -37,7 +37,7 @@ services:
|
|||
- database_network
|
||||
depends_on:
|
||||
- letsencrypt
|
||||
web:
|
||||
django:
|
||||
restart: always
|
||||
volumes:
|
||||
- gunicorn-socket:/var/gunicorn
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue