Repository navigation
Conversation
|
@mijdavis2 This feature is super cool and incredibly useful for Python devs I think we can generalize this further into a separate This PR makes three assumptions:
By providing a separate What do you think about this? If you like it, I am happy to collaborate with you on an RFC for the |
|
There hasn't been any activity here in a while, so going to close the PR. Happy to reopen in the future though. |
|
For those who get here from google search. Here is alternative solution to enable hot reload on your python sam app: Use watchmedo to watch any changes in your function. For example: This will rebuild your apps if there is any changes. Then on another terminal tab, start the server: |
Issue #, if available:
n/a
Description of changes:
Adds a "hot loader" for local development when using python runtimes.
Since python runtimes require a
cp src_dir/* src_dir/build/on each change (due to the flat dir constraint of the lambda framework), I initially made a wrapper aroundsam local start-apito watch and copy src files to thebuilddir on changes.I started integrating the loader into the cli to make the wrapper unnecessary. If there's an interest in this feature, I'll keep working to productionize this. Otherwise, I don't want to waste the cycles.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.