Skip to content

Instantly share code, notes, and snippets.

@pdincau
Created May 24, 2015 12:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pdincau/ce754a4290d048799947 to your computer and use it in GitHub Desktop.
Save pdincau/ce754a4290d048799947 to your computer and use it in GitHub Desktop.
cowboy static files:
src
priv
in priv
static/js
index.html
index referenzia js come <script src="/static/js/controllers.js"></script>
routes() ->
[{'_', [{"/", cowboy_static, {priv_file, instagram_listener, "index.html"}},
{"/static/[...]", cowboy_static, {priv_dir, instagram_listener, "static"}}]}].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment