Skip to content

Commit 08043b3

Browse files
committed
rocketman.learnwagtail.com source code
0 parents  commit 08043b3

File tree

222 files changed

+24995
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

222 files changed

+24995
-0
lines changed

.babelrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["@babel/preset-env"]
3+
}

.editorconfig

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Defines the coding style for different editors and IDEs.
2+
# http://editorconfig.org
3+
4+
# top-most EditorConfig file
5+
root = true
6+
7+
# Rules for source code.
8+
[*]
9+
charset = utf-8
10+
end_of_line = lf
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true
13+
indent_style = space
14+
indent_size = 2
15+
16+
# Rules for Python code.
17+
[*.py]
18+
indent_size = 4
19+
20+
# Rules for tool configuration.
21+
[{package.json,*.yml, *.yaml}]
22+
indent_size = 2
23+
24+
# Rules for markdown documents.
25+
[*.md]
26+
trim_trailing_whitespace = false
27+
28+
# Rules for makefile
29+
[Makefile]
30+
indent_style = tabs
31+
indent_size = 4

.gitignore

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Python
2+
*.py[cod]
3+
*.egg*
4+
local_dev.py
5+
.mypy_cache
6+
__pycache__/
7+
8+
# Editors
9+
.idea/
10+
.vscode/
11+
12+
*.swp
13+
*.pyc
14+
.DS_Store
15+
/.coverage
16+
/dist/
17+
/build/
18+
/MANIFEST
19+
/wagtail.egg-info/
20+
/docs/_build/
21+
/.tox/
22+
/venv
23+
/node_modules/
24+
npm-debug.log*
25+
*.idea/
26+
/*.egg/
27+
/.cache/
28+
/.pytest_cache/
29+
/media/
30+
/rocketmanvenv/
31+
.venv/
32+
33+
### JetBrains
34+
.idea/
35+
*.iml
36+
*.ipr
37+
*.iws
38+
coverage/
39+
client/node_modules
40+
41+
### Databases
42+
*.sqlite3
43+
44+
### Local static files
45+
/static/
46+
47+
# Temporary files
48+
*.swp
49+
*.swo
50+
*.tmp
51+
*~
52+
*.todo
53+
54+
55+
# Local files
56+
local.py
57+
.env
58+
59+
nginx-error.log
60+

.isort.cfg

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[settings]
2+
indent=' '
3+
multi_line_output=5
4+
known_django=django
5+
sections=FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
6+
skip=migrations

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
10.15.3

Dockerfile

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Use an official Python runtime as a parent image
2+
FROM python:3.7
3+
LABEL maintainer="[email protected]"
4+
5+
# Set environment varibles
6+
ENV PYTHONUNBUFFERED 1
7+
ENV DJANGO_ENV dev
8+
9+
COPY ./requirements.txt /code/requirements.txt
10+
RUN pip install --upgrade pip
11+
# Install any needed packages specified in requirements.txt
12+
RUN pip install -r /code/requirements.txt
13+
RUN pip install gunicorn
14+
15+
# Copy the current directory contents into the container at /code/
16+
COPY . /code/
17+
# Set the working directory to /code/
18+
WORKDIR /code/
19+
20+
RUN python manage.py migrate
21+
22+
RUN useradd wagtail
23+
RUN chown -R wagtail /code
24+
USER wagtail
25+
26+
EXPOSE 8000
27+
CMD exec gunicorn rocketman.wsgi:application --bind 0.0.0.0:8000 --workers 3

Pipfile

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[[source]]
2+
name = "pypi"
3+
url = "https://pypi.org/simple"
4+
verify_ssl = true
5+
6+
[dev-packages]
7+
8+
[packages]
9+
wagtail = "<2.8,>=2.7"
10+
Django = ">=2.2,<2.3"
11+
django-extensions = "==2.2.1"
12+
django-widget-tweaks = "==1.4.5"
13+
sentry-sdk = "==0.13.5"
14+
django-debug-toolbar = "==2.1"
15+
pudb = "==2019.2"
16+
17+
[requires]
18+
python_version = "3.7"

0 commit comments

Comments
 (0)