View Source Phoenix.Copy (Phoenix.Copy v0.1.0)
Copy static assets for your Phoenix app during development and deployment.
For more information, see the README.
direct-usage
Direct Usage
To copy files once, use run/1
with the name of the configured profile:
run(:default)
To watch for changes and continually copy files, use watch/1
:
watch(:default)
Note that watch/1
will block execution.
Link to this section Summary
Functions
Returns the configuration of the given profile
.
Copies files from the configured source and destination for the given profile
.
Watch for changes in the configured source
and copy files to the destination
.
Link to this section Functions
Specs
Returns the configuration of the given profile
.
Specs
Copies files from the configured source and destination for the given profile
.
Returns a list of copied files.
Specs
Watch for changes in the configured source
and copy files to the destination
.
Also performs an initial copy of the files immediately. Note that this function blocks execution until the process receives an exit signal.