Code Monkey home page Code Monkey logo

Comments (5)

pbrisbin avatar pbrisbin commented on August 29, 2024

Steps taken for carnival-staging that will have to occur again on -production:

  • Create Heroku App
  • Add Postgres Add-on
  • Set buildpack:
$ heroku config:set BUILDPACK_URL="https://github.com/begriffs/heroku-buildpack-ghc.git"
  • Push once and probably blow Heroku's build timeout:
$ git push staging master
  • Build on an anvil server:
$ heroku plugins:install https://github.com/ddollar/heroku-anvil
$ heroku build -r -b https://github.com/begriffs/heroku-buildpack-ghc.git
  • Push finally:
$ git push staging master

from carnival.

pbrisbin avatar pbrisbin commented on August 29, 2024

I have this effectively working in pb-deploy-to-heroku, but I can't get around the build timeout. The anvil instructions in that link don't seem to be making subsequent deploys any faster.

Will investigate next week.

from carnival.

pbrisbin avatar pbrisbin commented on August 29, 2024

OK. So it looks like the buildpack README is just misleading: begriffs/heroku-buildpack-ghc#16

If I'm reading this correctly, it's an open problem that subsequent normal pushes after an Anvil build will not reuse the cache and will likely timeout. But, the Anvil build does actually deploy the app. I was probably not realizing this because I was attempting to deploy a non-master branch.

I'm going to re-run an anvil build with local commits on master and see if that results in a successful deploy. If so, we can just state that Anvil is the way to deploy carnival -- that is, until the above issue is resolved.

from carnival.

pbrisbin avatar pbrisbin commented on August 29, 2024

Update:

After a few tries, I managed to get past the Anvil errors. It required a combination of heroku restart, repeated attempts, and (apparently) waiting some time. I'm not sure if this will be an ongoing issue or not. My understanding is trying to do a normal push and timing out can put the Dyno into a state where an Anvil build will error in this way. Restarting it is required, but sometimes you also have to wait a bit before trying. If that's the case then we should OK now that we know not to attempt a normal push, but to always use Anvil. I'll update the README with this information when the changes are pushed.

That means staging is live now: http://carnival-staging.herokuapp.com/user

I now just need to create a new OAuth App on Learn and set the environment variable for it to start working -- for now, it's falling back to dev credentials which don't work.

from carnival.

pbrisbin avatar pbrisbin commented on August 29, 2024

Closing for #27

from carnival.

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.