-
-
Notifications
You must be signed in to change notification settings - Fork 98
Tidying up sample.env #294
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,48 +1,45 @@ | ||
| # Copy this file to .env docker-compose will read and use the values from here. | ||
| # The build.py script is also aware of this file | ||
| # The build.py script is also aware of this file and if you run `poetry self add | ||
| # poetry-dotenv-plugin` when you run `poetry shell` it will also pick up these | ||
| # variables and add them to your environment. | ||
|
|
||
| # Where is the runestone app located (inside the container) | ||
| RUNESTONE_PATH = /usr/local/lib/python3.10/site-packages/rsptx/web2py_server/applications/runestone | ||
|
|
||
| # Database URLs | ||
| # You may want to have a couple of different environment variables set up that essentially point | ||
| # to the same database. Therefore we have two variables. DEV_DBURL and DC_DEV_DBURL. The DC variant | ||
| # should only be set in this file for use with docker-compose. But if you don't set it and you | ||
| # have a DEV_DBURL variable set in your shell compose will use that as a back up. In My development | ||
| # environment I have: | ||
| # DEV_DBURL= postgresql://user:pass@localhost/runestone_dev | ||
| # DC_DEV_DBURL=postgresql://runestone:runestone@host.docker.internal/runestone_dev | ||
|
|
||
| # Uncomment one or more of these. If you run a database on the host then the DEV_DBURL uses | ||
| # a nice docker trick to connect to it. | ||
| # DBURL = postgresql://username:password@production_host/runestone | ||
| # TEST_DBURL=postgresql://runestone:runestone@host.docker.internal/runestone_test | ||
| DC_DEV_DBURL=postgresql://runestone:runestone@host.docker.internal/runestone_dev | ||
| DC_DBURL=postgresql://runestone:runestone@host.docker.internal/runestone | ||
| # Database URLs: You may want to have a couple of different environment | ||
| # variables set up that essentially point to the same database. Therefore we use | ||
| # one set of variables for use within docker, prefixed with DC_ and another pair | ||
| # for use outside of docker. The DC variants should only be set in this file for | ||
| # use with docker-compose. (If you don't set the DC_ variables, docker compose | ||
| # will fall back to the other pair.) | ||
|
|
||
| DBURL = postgresql://runestone:runestone@localhost/runestone | ||
| DC_DBURL = postgresql://runestone:runestone@host.docker.internal/runestone | ||
|
|
||
| DEV_DBURL = postgresql://runestone:runestone@localhost/runestone_dev | ||
| DC_DEV_DBURL = postgresql://runestone:runestone@host.docker.internal/runestone_dev | ||
|
|
||
| # Server configuration (production, development, or test) | ||
| # You should not set this to test as that is for our testing framework, not for | ||
| # You should not set these to test as that is for our testing framework, not for | ||
| # people who are just testing out Runestone. | ||
| SERVER_CONFIG=development | ||
| WEB2PY_CONFIG=$SERVER_CONFIG | ||
| WEB2PY_CONFIG=development | ||
|
|
||
| # The path to runestone books (on the host) In the container is set to /books | ||
| export BOOK_PATH=~/Runestone/books | ||
|
|
||
| BOOK_PATH=~/Runestone/books | ||
|
|
||
| ## !! change these !! | ||
| # This replaces the private/auth.key file for web2py | ||
| WEB2PY_PRIVATE_KEY=sha512:24c4e0f1-df85-44cf-87b9-67fc714f5653 | ||
| WEB2PY_PRIVATE_KEY = sha512:24c4e0f1-df85-44cf-87b9-67fc714f5653 | ||
| # This is the secret key for the javascript web token | ||
| JWT_SECRET = supersecret | ||
|
|
||
| # Set up host names | ||
| # localhost is ok for development, but you should set this to the real hostname | ||
| # if running a remote development server or definitely for production | ||
| RUNESTONE_HOST=localhost | ||
| RUNESTONE_HOST = localhost | ||
| # for production where you run a front end load balancer | ||
| LOAD_BALANCER_HOST=localhost | ||
| LOAD_BALANCER_HOST = localhost | ||
|
|
||
| # If you want nginx to install a certificate | ||
| # CERTBOT_EMAIL=myemail@foo.com | ||
|
|
||
| # CERTBOT_EMAIL = myemail@foo.com |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit confused by this sentence compared to the disclaimer about
rsmanageat line 232.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be clear, the thing I was confused about was at 232 where it says:
"As of this writing (June 2023) rsmanage does not know about the
.envfile so you will have toset them in your login shell if you want to use rsmanage."