Guide: Local development workflow

The contents of this guide have been moved to our documentation website here.

This thread will remain open for discussion.

1 Like

What do these directories contain?

  • /opt/autopi/modules
  • /opt/autopi/returners
  • /opt/autopi/utils
  • /opt/autopi/engines
  • /opt/autopi/states

which one contains services? utility is understandable? what is in modules? Returners is under stable. Where are jobs? Execution?

I’m having trouble getting the AutoPi to pick up my change. I am SSH’d into my AutoPi and I can see my updated code in /opt/autopi/salt/modules and if I run this

$ autopi saltutil.refresh_modules
true
...

It still does not run my updated code. The only way I’ve gotten it to recognize the updated code is by rebooting the AutoPi, is there an easier way to refresh locally-changed modules?

Can anyone advise on the fastest way to reload custom modules? I can restart the salt-minion service with

sudo systemctl restart salt-minion

But this still takes several minutes for the service to restart and be ready again. It also re-syncs the code from the cloud after restarting. I’m hoping for a quick “re-import custom code that’s on the device” command that I can run.