Loading
Your configuration file is loaded when the app launches. All functions are evaluated (and executed if necessary) when this happens. Phoenix also reloads the configuration when any changes are detected to the file(s). You may also reload the configuration manually from the status bar or programmatically from your script.
The following locations are valid configuration paths and the first existing file will be used. Whilst loading, all symlinks will be resolved, so in the end your configuration can also be a symlink to any desired destination.
~/.phoenix.js
~/Library/Application Support/Phoenix/phoenix.js
~/.config/phoenix/phoenix.js
If you delete your main configuration file while Phoenix is still running, Phoenix will create a blank file in its place. Be sure and quit Phoenix when switching between using the ~/.phoenix.js
, ~/Library/Application Support/Phoenix/phoenix.js
or ~/.config/phoenix/phoenix.js
configuration files.
You may also use these paths for the debug configuration (with a suffix of .debug.js
), if you are using a debug build of Phoenix.