Giter Site home page Giter Site logo

Comments (6)

rccursach avatar rccursach commented on May 23, 2024

Hi @gjaldon , I've set up a phoenix 1.3.x with dokku to try this.

added this to my .buildpacks:

https://github.com/HashNuke/heroku-buildpack-elixir.git
https://github.com/gjaldon/heroku-buildpack-phoenix-static.git#var-in-release

When using #master things runs ok because it picks up phx instead of phoenix,
but with #var-in-release I got this:

** (Mix) The task ".server" could not be found. Did you mean "phx.server"?

But this message from lib/common changes accordingly to my .config file:

Will use phoenix configuration:
       * assets path assets
       * mix tasks namespace phx

(according to the value of phoenix_ex inside phoenix_static_buildpack.config)

It may be a thing of Dokku, when running the release script... let me test it with heroku too.

But maybe is less trouble just to leave the branch that references phoenix instead of phx, as a solution. Maybe, there's a minority of apps with phoenix < 1.3.x out there?

from heroku-buildpack-phoenix-static.

rccursach avatar rccursach commented on May 23, 2024

UPD: Same with Heroku..
Screen Shot 2019-03-11 at 9 21 15 PM

And Dokku:

Screen Shot 2019-03-11 at 8 29 02 PM

I think I made the issue because I had already tried to use the var ${phoenix_ex} back then.. 🤔.
Maybe is no big deal to just have a branch for old apps ? 😆

from heroku-buildpack-phoenix-static.

gjaldon avatar gjaldon commented on May 23, 2024

@rccursach just updated the branch #87. This time, I loaded the config vars inside bin/release. Can you test it out? :)

from heroku-buildpack-phoenix-static.

rccursach avatar rccursach commented on May 23, 2024

it gives this: "mapping values are not allowed in this context at line 4 column 15" :/

With or without a phoenix_static_buildpack.config. Idk what part of the code is parsing a YAML file though.

Screen Shot 2019-03-12 at 4 37 47 PM

from heroku-buildpack-phoenix-static.

rccursach avatar rccursach commented on May 23, 2024

The above error happens bc what's echoed by the load_config() is added to the YAML output of release.
it works now in pr #88 for the var-in-release branch

from heroku-buildpack-phoenix-static.

gjaldon avatar gjaldon commented on May 23, 2024

Addressed in #88

from heroku-buildpack-phoenix-static.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.