Simon

Results 215 comments of Simon

**"Heroku buildpack for handling static sites and single page web apps"** I have been reading/looking for an easier way to deploy static files. With Heroku there is the following buildpack:...

Following the instruction on https://github.com/heroku/heroku-buildpack-static#deploying - [x] Created new Heroku app and added the buildpack - [x] Created an empty static.json file - [x] Deploy manually the new branch The...

error: ![image](https://user-images.githubusercontent.com/6057298/36149402-680eed62-10b7-11e8-99c9-f35a3f4715ea.png) Function call error: The error is due to the call of the function ```Enum.any?/2``` with the first parameter being ```nil``` when dwylbot check for breaking rules: https://github.com/dwyl/dwylbot/blob/f2ff1ba6c32d6656a7b3cc3abfcf1299bdac0f7c/lib/dwylbot_web/controllers/processes/wait.ex#L12 Github...

The error on my localhost was due to a conflicts between multiple dwylbot Github app tests. After updating the environment variables everything works fine. The next step is to see...

While looking for logs #180, I spotted some other issues/logging infomraiton that could also be resolved: - remove database connection #177 - start server with ```mix phx.server``` #178 However I...

The Procfile has been added however I'm not sure the ```mix phx.server``` works correctly on Heroku: ![image](https://user-images.githubusercontent.com/6057298/36159035-aa1e1368-10d5-11e8-919b-3dbb2c7d97bb.png) But the server still seems manage to receive some events (despite crashing after)

From the doc: https://hexdocs.pm/phoenix/heroku.html#making-our-project-ready-for-heroku Looks like the value ```load_from_system_env: true``` could fix the ```failed to bind to $PORT``` issue

When offline the following icon is displayed: ![image](https://user-images.githubusercontent.com/6057298/71001296-e677fc00-20d4-11ea-9396-839a384358ff.png)

The online state is currently set to `True` when the elm application is initiliased: https://github.com/dwyl/elm-pwa-example/blob/13adc8634b2bee592edd85a2ee74a49500668bde/src/Main.elm#L45 This is working well when the browser is online, however now that PWA can load...

So I have already the event listener setup and it's working when the application is already loaded: https://github.com/dwyl/elm-pwa-example/blob/13adc8634b2bee592edd85a2ee74a49500668bde/index.html#L27-L36 The issue is on the initialisation, because the `online` or `offline` events...