Skip to content

Commit

Permalink
fix moving over defaults during update
Browse files Browse the repository at this point in the history
  • Loading branch information
jippi committed Feb 11, 2024
1 parent 939a774 commit a29cf3f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
24 changes: 16 additions & 8 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
#
# Use Dottie (https://github.com/jippi/dottie) to manage this .env file easier!
#
# For example:
#
# Run [dottie update] to update your [.env] file with upstream (as part of upgrade)
# Run [dottie validate] to validate youe [.env] file
#
# @dottie/source .env.example

################################################################################
Expand All @@ -13,14 +18,16 @@

# The name/title for your site
# @see https://docs.pixelfed.org/technical-documentation/config/#app_name-1
# @dottie/validate required,ne=My Pixelfed Site
APP_NAME="My Pixelfed Site"
# @dottie/example My Pixelfed Site
# @dottie/validate required
APP_NAME=

# Application domain used for routing. (e.g., pixelfed.org)
#
# @see https://docs.pixelfed.org/technical-documentation/config/#app_domain
# @dottie/validate required,ne=example.com,fqdn
APP_DOMAIN="example.com"
# @dottie/example example.com
# @dottie/validate required,fqdn
APP_DOMAIN=

# This URL is used by the console to properly generate URLs when using the Artisan command line tool.
# You should set this to the root of your application so that it is used when running Artisan tasks.
Expand All @@ -29,7 +36,7 @@ APP_DOMAIN="example.com"
# @dottie/validate required,http_url
APP_URL="https://${APP_DOMAIN}"

# Application domains used for routing
# Application domains used for routing.
#
# @see https://docs.pixelfed.org/technical-documentation/config/#admin_domain
# @dottie/validate required,fqdn
Expand Down Expand Up @@ -363,8 +370,8 @@ DB_USERNAME="pixelfed"
# Use a site like https://pwgen.io/ to generate it
#
# @see https://docs.pixelfed.org/technical-documentation/config/#db_password
# @dottie/validate required,ne=__CHANGE_ME__
DB_PASSWORD="__CHANGE_ME__"
# @dottie/validate required
DB_PASSWORD=

# @see https://docs.pixelfed.org/technical-documentation/config/#db_database
# @dottie/validate required
Expand Down Expand Up @@ -885,6 +892,7 @@ SESSION_DRIVER="redis"
# 32 character string, otherwise these encrypted strings will not be safe.
#
# @see https://docs.pixelfed.org/technical-documentation/config/#app_key
# @dottie/validate required
APP_KEY=

# Prefix for container names (without any dash at the end)
Expand Down Expand Up @@ -1221,4 +1229,4 @@ DOCKER_PROXY_LETSENCRYPT_EMAIL="${INSTANCE_CONTACT_EMAIL:?error}"
# Lets Encrypt staging/test servers for certificate requests.
#
# Setting this to any value will change to letsencrypt test servers.
DOCKER_PROXY_LETSENCRYPT_TEST="1"
#DOCKER_PROXY_LETSENCRYPT_TEST="1"
2 changes: 1 addition & 1 deletion pkg/ast/document.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func (doc *Document) Upsert(input *Assignment, options UpsertOptions) (*Assignme
return nil, nil
}

if options.SkipIfSame && existing != nil && existing.Literal == input.Literal {
if options.SkipIfSame && existing != nil && existing.Literal == input.Literal && existing.Active == input.Active {
return nil, nil
}

Expand Down

0 comments on commit a29cf3f

Please sign in to comment.