Comments (5)
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.
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.
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.
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.
Closing for #27
from carnival.
Related Issues (20)
- Add copy to the homepage
- article_selector with id HOT 3
- Please add type="text/javascript" to the script tags HOT 3
- Make it possible to delete comments HOT 4
- Not working on my site HOT 4
- HTML is unescaped HOT 2
- Unsubscribe may be broken HOT 6
- Syntax error on docs page HOT 1
- Official tutorial for VPS HOT 1
- Consider replacing helper with middleware
- Experiment with Heroku Docker
- Set up Airbrake for 500 errors
- Comment feed contains bogus article URL due to omitting forward slashes
- Comments not working for bottom half of blog post HOT 1
- yesod devel fails on master
- New Comment button not appearing at certain screen sizes HOT 1
- 'Authentication Error' with github sign-in HOT 7
- Comments visually overflowing onto footer HOT 1
- Horizontal overflow for long strings
- Use free SSL option on Heroku?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from carnival.