From 20caa874192944fa9a97108283331135f73e959b Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Sun, 2 Mar 2025 16:21:54 -0500 Subject: [PATCH] 1.0.1 modified: README.rst modified: development.ini modified: setup.py --- README.rst | 21 ++++++++++++++++++++- development.ini | 2 +- setup.py | 2 +- 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index aacbd63..2a8b7c6 100644 --- a/README.rst +++ b/README.rst @@ -43,8 +43,27 @@ This Makefile-based workflow lets you choose between installing ``make_post_sell 3. **Start the Development Server** + You'll want to configure the system in ``data/development.ini``. + + Typically I control most stuff with environment vars, for example ``vars.sh``:: + + # boto3 style credentials for s3/digital-ocean spaces. + # this is for storing content & physical products. + export MPS_APP_MAIN_BUCKET="removed" + export MPS_APP_SECURE_UPLOADS_ACCESS_KEY="removed" + export MPS_APP_SECURE_UPLOADS_SECRET_KEY="removed" + + # stripe keys for collecting credit cards & crypto. + export MPS_TEST_STRIPE_PUBLIC_API_KEY="pk_test_removed" + export MPS_TEST_STRIPE_SECRET_API_KEY="sk_test_removed" + + # the root domain acts as a SaaS for many shop domains! + export MAKE_POST_SELL_ROOT_DOMAIN="example.com" + export MAKE_POST_SELL_ROOT_URL="http://example.com:6502" + With the virtual environment active, start the server:: - + + source var.sh make serve Then browse to `http://127.0.0.1:6501/ `_ to view the app. diff --git a/development.ini b/development.ini index 7338bfe..aa0f99b 100644 --- a/development.ini +++ b/development.ini @@ -50,7 +50,7 @@ app.make_post_sell.root_domain_owner_email = ${MAKE_POST_SELL_DOMAIN_OWNER_EMAIL # TODO: these values should be moved to environment variables & we should create an # example app.env environment file. -app.bucket.secure_uploads = plan-period-files +app.bucket.secure_uploads = ${MPS_APP_MAIN_BUCKET} app.bucket.secure_uploads.region = nyc3 app.bucket.secure_uploads.post_endpoint = https://nyc3.digitaloceanspaces.com app.bucket.secure_uploads.get_endpoint = https://plan-period-files.nyc3.cdn.digitaloceanspaces.com diff --git a/setup.py b/setup.py index 9f4b303..fb37273 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ with open(os.path.join(here, "README.rst"), "r", encoding="utf-8") as f: setup( name="make_post_sell", - version="1.0.0", + version="1.0.1", description="Make Post Sell", long_description=long_description, classifiers=[