Jose Diaz-Gonzalez
e134c314ea
feat: implement config:import command
...
Closes #6846
2025-11-08 01:02:19 -05:00
Jose Diaz-Gonzalez
bb5ab0a777
refactor: use CallPlugnTrigger instead of PlugnTrigger
...
Refs #6422
2024-03-14 03:11:37 -04:00
Jose Diaz-Gonzalez
a277c5da1b
refactor: allow setting more options when changing permissions on a file
...
Rather than hardcoding paths, just allow them to be options.
2024-01-30 07:31:02 -05:00
Jose Diaz-Gonzalez
414c891c6c
fix: do not trigger restarts when mutating config globally
...
Closes #5289
2022-08-10 17:01:31 -04:00
Jose Diaz-Gonzalez
88c1abc608
fix: force-set correct permissions on env files
...
If an env file is written as a root user - for example, during plugin install - the permissions on the file may change to root. This forces those permissions back to what they should be so that the dokku user can edit the files later on.
Closes #5190
2022-05-21 03:45:05 -04:00
Jose Diaz-Gonzalez
685ef90018
fix: use release-and-deploy to ensure env vars get re-injected after config changes
2021-10-09 18:46:19 -04:00
Jose Diaz-Gonzalez
d55e34a55f
refactor: use LogFailWithError to allow a unified exit code for golang commands when the app is missing
2021-02-28 15:20:46 -05:00
Jose Diaz-Gonzalez
d7b23b84f0
fix: allow renaming old applications to new format
...
0.22.0 changed allowed values for app names, making it more difficult for users to fix their app names - you need to either downgrade+rename or recreate the app. The `apps:rename` command can now rename these old applications to the new standard.
Also drop some app name verification from internal commands. Duplicate verification doesn't help much, and though it isn't excessively slow, it does prevent us from running commands against old apps that exist.
Refs #4267
2020-12-22 13:29:32 -05:00
Jose Diaz-Gonzalez
a93cec63be
feat: simplify flag parsing in config plugin
...
Commands should be written such that they take arguments as is.
2020-05-29 01:59:50 -04:00
Jose Diaz-Gonzalez
f977edabb2
feat: add config:clear command
...
Closes #3537
2019-05-20 13:26:21 -07:00
Jose Diaz-Gonzalez
c6a1c0dcbf
feat: respect --quiet in config.go
...
When setting environment variables, we should respect a passed `--quiet` flag - and the respective environment variable. This will allow users to have a nicer experience when using the config functions within their own plugins.
2019-03-13 02:05:18 -04:00
Kazuhiro NISHIYAMA
59abb1c161
Fix a typo [ci skip]
2018-01-16 21:47:19 +09:00
Jose Diaz-Gonzalez
f3d6190e18
Merge pull request #3012 from alexquick/fix-config-invalid-keys
...
Fail when setting/unsetting invalid keys
2017-12-16 23:49:53 -05:00
Alex Quick
5fbe28f672
[config] stream output of app-restart & post-config-update plugn triggers to stdout/err
2017-12-16 11:32:06 -05:00
Alex Quick
f8e3bdc56b
[config] forward output from plugn triggers to user
2017-12-15 09:37:28 -05:00
Alex Quick
92d7e8ce65
[config] let user know if they are unsetting a non-existent config key
2017-12-15 09:22:56 -05:00
Alex Quick
e7faec3e26
[config] fail on setting/unsetting invalid keys
2017-12-15 09:20:18 -05:00
Alex Quick
91c2164e49
[config] refactor package structure
2017-10-15 20:10:46 -04:00
Alex Quick
430cc2b4ca
[config] move PrettyPrintEnvEntries
2017-10-12 23:42:14 -04:00
Alex Quick
3f497908b5
[config] use named returns where applicable
2017-10-12 23:41:42 -04:00
Alex Quick
3422866909
[config] remove spurious newlines
2017-10-12 22:50:29 -04:00
Alex Quick
b84635baf7
[config] remove old code
2017-10-12 22:49:44 -04:00
Jose Diaz-Gonzalez
5e82b37147
Merge branch 'master' into feature-config-golang
2017-10-04 19:04:31 -04:00
Michael Hobbs
8654783131
style tweaks
2017-10-02 16:50:05 -07:00
Jose Diaz-Gonzalez
acde3d60a7
feat: allow users to bind to all interfaces when a proxy is enabled
...
- use a plugin trigger to see whether we should bind to all interfaces
- create a generic way of setting properties for a plugin
- migrate proxy-enabled to the new network property "bind-all-interfaces"
- add network:set subcommand
2017-10-02 15:05:13 -07:00
Jose Diaz-Gonzalez
3b9f4ba63f
fix: correct lint errors
2017-10-02 15:05:13 -07:00
Jose Diaz-Gonzalez
c788659b63
refactor: rewrite network plugin in golang
2017-10-02 15:05:13 -07:00
Alex Quick
60e3b37d39
[config] trigger app restart through plugn rather than exec
2017-09-27 23:56:43 -04:00
Alex Quick
4808c047ee
[config] make HasKey more idiomatic
2017-09-27 23:56:42 -04:00
Alex Quick
be5e81b246
[config] config:get exit with status 1 if key is not set in env
2017-09-27 23:56:42 -04:00
Alex Quick
eeb6e78fa4
[config] move to godotenv
2017-09-27 23:56:41 -04:00
Alex Quick
08aa2b9fa4
[config] improve logging and default command
2017-09-27 23:56:41 -04:00