mirror of
https://github.com/langgenius/dify-docs-archived.git
synced 2026-07-21 01:45:23 -04:00
[PR #292] [MERGED] correct instruction to generate and replace SECRET_KEY value in .env file #412
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langgenius/dify-docs-archived/pull/292
Author: @bowenliang123
Created: 9/26/2024
Status: ✅ Merged
Merged: 9/26/2024
Merged by: @crazywoola
Base:
main← Head:secret-key📝 Commits (1)
c414261update doc📊 Changes
5 files changed (+5 additions, -8 deletions)
View changed files
📝
en/getting-started/install-self-hosted/environments.md(+1 -1)📝
en/getting-started/install-self-hosted/local-source-code.md(+1 -2)📝
jp/getting-started/install-self-hosted/local-source-code.md(+1 -2)📝
zh_CN/getting-started/install-self-hosted/environments.md(+1 -1)📝
zh_CN/getting-started/install-self-hosted/local-source-code.md(+1 -2)📄 Description
Before this PR:
Failed to replace value in
.envfile withsedon Mac.(dify-api-py3.10) bw@bwdeMacBook-Pro-2 api % sed -i 's/SECRET_KEY=.*/SECRET_KEY=QDyaHv8M5kuJ6XpNxEHXZ0OD6B029cKNrOt+VPxky70ixTGAwRBNtULn/' .env
sed: 1: ".env": invalid command code .
With this PR:
To solve this problem,
Possible approach 1 with
sed:Possible approach 2 with
awk(recommended and used in this PR as it has clear syntax without escaping characters likesed):🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.