-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for multiple phoenix applications under an Umbrella App #44
Comments
We ended up using something like this where we had multiple Phoenix apps with assets but with a router which didn't have any assets. The router failed to This approach can support Phoenix 1.2 or 1.3 apps. Use yarn by ensuring there is a cd $build_dir
# Phoenix 1.2
mix cmd --app app_a "(yarn install && yarn run deploy) || true"
mix cmd --app app_a mix phoenix.digest
# Phoenix 1.3
mix cmd --app app_b "(cd assets && yarn install && yarn run deploy) || true"
mix cmd --app app_b mix phx.digest /cc @JonRowe |
Since this seems to be the simplest way to achieve this, it'd be nice to add some instructions to the README |
What is the status on this ? |
A couple of things need to happen, |
Specifically the heroku-buildpack-phoenix-static/lib/build.sh Line 117 in fa86249
|
So, I run multiple phoenix applications and each have their own assets.
To get around
cd
'ing into all the different applications and running the npm deploy script in each..I just have a custom
compile
script that looks like this:You can run
mix cmd
which will run the command in each of all the child applications.mix phoenix.digest
also does run in all of the phoenix applications as well.I feel like you can use these same commands in a single application, and even in umbrella applications.
The text was updated successfully, but these errors were encountered: