Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove demo code #3538

Merged
merged 11 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
ALLOWED_HOSTS='.localhost, 127.0.0.1, [::1]'
SECRET_KEY=2gr6ud88x=(p855_5nbj_+7^bw-iz&n7ldqv%94mjaecl+b9=4
## Uncomment the setting below to put Mathesar in 'demo mode'
# DJANGO_SETTINGS_MODULE=demo.settings
6 changes: 0 additions & 6 deletions DEVELOPER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,6 @@ If you'd like to manually push or pull translations, follow the instructions in

1. Commit and push the changes to our repo.

## Demo mode

Mathesar can be run in "demo mode" to meet the specific needs of our [live demo site](https://demo.mathesar.org).

See our [Live demo mode](./demo/README.md) guide for more information on enabling live demo mode locally


## Opening a shell in the container

Expand Down
12 changes: 0 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -106,18 +106,6 @@ RUN rm -rf ./mathesar/tests ./db/tests
RUN rm -rf ./docs


#=========== STAGE: DEMO =====================================================#

FROM common AS demo

# Install prod requirements
RUN pip install --no-cache-dir -r requirements-demo.txt

EXPOSE 8000

ENTRYPOINT ["./run.sh"]


mathemancer marked this conversation as resolved.
Show resolved Hide resolved
#=========== STAGE: PRODUCTION ===============================================#

FROM common AS production
Expand Down
2 changes: 0 additions & 2 deletions Dockerfile.integ-tests
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,9 @@ WORKDIR /code/

COPY requirements.txt .
COPY requirements-dev.txt .
COPY requirements-demo.txt .

RUN pip install -r requirements.txt
RUN pip install -r requirements-dev.txt
RUN pip install -r requirements-demo.txt
COPY . .

RUN cd mathesar_ui && npm ci && npm run build
Expand Down
3 changes: 0 additions & 3 deletions config/context_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ def frontend_settings(request):
frontend_settings = {
'development_mode': development_mode,
'manifest_data': manifest_data,
'live_demo_mode': getattr(settings, 'MATHESAR_LIVE_DEMO', False),
'live_demo_username': getattr(settings, 'MATHESAR_LIVE_DEMO_USERNAME', None),
'live_demo_password': getattr(settings, 'MATHESAR_LIVE_DEMO_PASSWORD', None),
'display_language': display_language,
'include_i18n_fallback': display_language != fallback_language,
}
Expand Down
47 changes: 0 additions & 47 deletions demo/README.md

This file was deleted.

1 change: 0 additions & 1 deletion demo/__init__.py

This file was deleted.

13 changes: 0 additions & 13 deletions demo/apps.py

This file was deleted.

55 changes: 0 additions & 55 deletions demo/db_namer.py

This file was deleted.

Empty file removed demo/install/__init__.py
Empty file.
62 changes: 0 additions & 62 deletions demo/install/arxiv_skeleton.py

This file was deleted.

72 changes: 0 additions & 72 deletions demo/install/base.py

This file was deleted.

37 changes: 0 additions & 37 deletions demo/install/custom_settings.py

This file was deleted.

Loading
Loading