diff --git a/Makefile b/Makefile index 44c8ff7b36..07fb799aeb 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,7 @@ DC_CI = "bin/docker-compose.sh" DC = $(shell which docker-compose) DOCKER = $(shell which docker) TEST_DOMAIN = www.mozilla.org +POCKET_MODE = Pocket all: help @@ -57,12 +58,20 @@ pull: .env rebuild: clean build +# Run in Mozorg-only mode, using Bedrock to serve ONLY Mozorg pages run: .docker-build-pull ${DC} up assets app run-prod: .docker-build-pull ${DC} up release-local +# Run in Pocket-only mode, using Bedrock to serve ONLY Pocket pages _at the root path_ +run-pocket: .docker-build-pull + -SITE_MODE=${POCKET_MODE} ${DC} up assets app + +run-pocket-prod: .docker-build-pull + -SITE_MODE=${POCKET_MODE} ${DC} up release-local + stop: ${DC} stop @@ -159,4 +168,4 @@ install-local-python-deps: # Dev requirements are a superset of prod requirements pip install -r requirements/dev.txt -.PHONY: all clean build pull docs livedocs build-docs lint run stop kill run-shell shell test test-image rebuild build-ci test-ci fresh-data djshell run-prod build-prod test-cdn compile-requirements check-requirements install-local-python-deps +.PHONY: all clean build pull docs livedocs build-docs lint run stop kill run-shell shell test test-image rebuild build-ci test-ci fresh-data djshell run-prod run-pocket run-pocket-prod build-prod test-cdn compile-requirements check-requirements install-local-python-deps diff --git a/bedrock/externalpages/urls.py b/bedrock/externalpages/urls.py deleted file mode 100644 index 738bd934ba..0000000000 --- a/bedrock/externalpages/urls.py +++ /dev/null @@ -1,25 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at https://mozilla.org/MPL/2.0/. - -from bedrock.mozorg.util import page - -urlpatterns = ( - page("pocket/about/", "externalpages/pocket/about.html"), - page("pocket/add/", "externalpages/pocket/add.html"), - page("pocket/android/", "externalpages/pocket/android.html"), - page("pocket/ios/", "externalpages/pocket/ios.html"), - page("pocket/chrome/", "externalpages/pocket/chrome.html"), - page("pocket/safari/", "externalpages/pocket/safari.html"), - page("pocket/opera/", "externalpages/pocket/opera.html"), - page("pocket/edge/", "externalpages/pocket/edge.html"), - page("pocket/welcome/", "externalpages/pocket/welcome.html"), - page("pocket/contact-info/", "externalpages/pocket/contact-info.html"), - page("pocket/firefox/new_tab_learn_more/", "externalpages/pocket/firefox/new-tab-learn-more.html"), - page("pocket/pocket-and-firefox/", "externalpages/pocket/pocket-and-firefox.html"), - page("pocket/get-inspired/", "externalpages/pocket/get-inspired.html"), - page("pocket/jobs/", "externalpages/pocket/jobs.html"), - page("pocket/privacy/", "externalpages/pocket/privacy.html"), - page("pocket/tos/", "externalpages/pocket/tos.html"), - page("pocket/save-to-pocket/", "externalpages/pocket/save-to-pocket.html"), -) diff --git a/bedrock/mozorg/templates/mozorg/robots.txt b/bedrock/mozorg/templates/mozorg/robots.txt index 79401708d7..7003d75015 100644 --- a/bedrock/mozorg/templates/mozorg/robots.txt +++ b/bedrock/mozorg/templates/mozorg/robots.txt @@ -6,6 +6,5 @@ disallow: /*/firstrun/ disallow: /*/newsletter/existing/ disallow: /*/whatsnew/ disallow: /*/etc/ -disallow: /*/external/ {% endif -%} Sitemap: {{ request.scheme }}://{{ request.get_host() }}/sitemap.xml diff --git a/bedrock/externalpages/__init__.py b/bedrock/pocket/__init__.py similarity index 100% rename from bedrock/externalpages/__init__.py rename to bedrock/pocket/__init__.py diff --git a/bedrock/externalpages/templates/externalpages/pocket/about.html b/bedrock/pocket/templates/pocket/about.html similarity index 96% rename from bedrock/externalpages/templates/externalpages/pocket/about.html rename to bedrock/pocket/templates/pocket/about.html index d2f838c2c1..0eefa0d1d5 100644 --- a/bedrock/externalpages/templates/externalpages/pocket/about.html +++ b/bedrock/pocket/templates/pocket/about.html @@ -4,7 +4,7 @@ file, You can obtain one at https://mozilla.org/MPL/2.0/. #} -{% extends "externalpages/pocket/base.html" %} +{% extends "pocket/base.html" %} {% block page_title %}About Us{% endblock %} @@ -15,7 +15,7 @@ {% endblock %} {% block content %} -{% include 'externalpages/pocket/includes/nav.html' %} +{% include 'pocket/includes/nav.html' %}
Download our images and press kit here.
Click the Pocket button in your Firefox toolbar to save articles, videos, pages, and more.
@@ -41,15 +41,15 @@email any link to your list by sending it to add@getpocket.com
To view all open positions at Pocket, please visit our Jobs Page.
If you believe you have discovered a security vulnerability in Pocket, please follow Mozilla’s bug reporting process documented on Mozilla’s Security page.
+If you believe you have discovered a security vulnerability in Pocket, please follow Mozilla’s bug reporting process documented on Mozilla’s Security page.
For questions related to security, please contact us at security@getpocket.com.
POCKET FOR FIREFOX