π«Deployment
How to get your app running in production
Before deploy
config :my_app, :content_security_policy, %{
default_src: [
....
"wss://yourdomain.com",
"wss://yourdomain.com/live/websocket"
]
}Removing CSP
# Change this:
plug(:put_secure_browser_headers, %{
"content-security-policy" =>
ContentSecurityPolicy.serialize(
struct(ContentSecurityPolicy.Policy, PetalPro.config(:content_security_policy))
)
})
# To this:
plug :put_secure_browser_headersDeployment with Fly.io

Building assets
Email sending
Petal Framework
Telling Fly to add our "petal" repo
Last updated
Was this helpful?
