simplify folder structure
This commit is contained in:
parent
e33c70fa25
commit
1b11c70430
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,8 +1,8 @@
|
||||||
*.csv
|
*.csv
|
||||||
.idea/
|
.idea/
|
||||||
backend/api/backend/static/
|
backend/backend/static/
|
||||||
*.gexf
|
*.gexf
|
||||||
backend/api/backend/whitelist.txt
|
backend/backend/whitelist.txt
|
||||||
data/
|
data/
|
||||||
|
|
||||||
# Byte-compiled / optimized / DLL files
|
# 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
|
TIMEOUT = 20 # seconds
|
||||||
NUM_THREADS = 16 # roughly 40MB each
|
NUM_THREADS = 16 # roughly 40MB each
|
||||||
PERSONAL_INSTANCE_THRESHOLD = 5 # instances with < this many users won't be scraped
|
PERSONAL_INSTANCE_THRESHOLD = 5 # instances with < this many users won't be scraped
|
||||||
STATUS_SCRAPE_LIMIT = 5000
|
STATUS_SCRAPE_LIMIT = 1000
|
||||||
|
|
||||||
|
|
||||||
class Command(BaseCommand):
|
class Command(BaseCommand):
|
|
@ -37,7 +37,7 @@ services:
|
||||||
- database_network
|
- database_network
|
||||||
depends_on:
|
depends_on:
|
||||||
- letsencrypt
|
- letsencrypt
|
||||||
web:
|
django:
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- gunicorn-socket:/var/gunicorn
|
- gunicorn-socket:/var/gunicorn
|
||||||
|
|
|
@ -11,7 +11,7 @@ services:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
volumes:
|
volumes:
|
||||||
- pgdata:/var/lib/postgresql/data
|
- pgdata:/var/lib/postgresql/data
|
||||||
web:
|
django:
|
||||||
environment:
|
environment:
|
||||||
# Set these in .env
|
# Set these in .env
|
||||||
- SECRET_KEY
|
- SECRET_KEY
|
||||||
|
@ -20,10 +20,10 @@ services:
|
||||||
- POSTGRES_DB
|
- POSTGRES_DB
|
||||||
- DJANGO_SETTINGS_MODULE
|
- DJANGO_SETTINGS_MODULE
|
||||||
- ENVIRONMENT=development
|
- ENVIRONMENT=development
|
||||||
build: ./backend/api
|
build: ./backend
|
||||||
command: bash scripts/docker-entrypoint.sh
|
command: bash scripts/docker-entrypoint.sh
|
||||||
volumes:
|
volumes:
|
||||||
- ./backend/api:/code
|
- ./backend:/code
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
Loading…
Reference in a new issue