jeansaad / chalet

🏩 A simple process manager for developers. Start apps from your browser and access them using local domains
MIT License
156 stars 19 forks source link

Ability to edit server environment variables #37

Closed frostme closed 1 year ago

frostme commented 1 year ago

Context

Add the ability to fully edit the environment variables of a server within the user interface.

Screenshots

Content Menu

image

Settings Component

image

Test Plan

  1. Start your chalet process.
  2. Go to the user interface
  3. Select a server (whether on, or off)
  4. Click the cog in the upper righthand corner.
  5. Edit config however you want
  6. Click save and ensure the new config file ~/.chalet/services/YOUR_SERVER.json is as expected.
  7. Attempt to save with improper json and make sure this is gracefully handled.
  8. Check empty state (config file has no env property).
  9. Check the cancel button simply closes the settings menu, and makes no file changes.

    Items requiring extra attention