Giter VIP home page Giter VIP logo

Comments (10)

nelsonic avatar nelsonic commented on September 23, 2024 1

https://hapi-chat.herokuapp.com/elm (working on heroku):
image

cc: @finnhodgkin

from hapi-socketio-redis-chat-example.

nelsonic avatar nelsonic commented on September 23, 2024

@finnhodgkin the/my preferred solution to this is not to include the "noisy" compiled version of the code in git but rather to build the elm version on Heroku before running the app...

from hapi-socketio-redis-chat-example.

nelsonic avatar nelsonic commented on September 23, 2024

before:
image

from hapi-socketio-redis-chat-example.

nelsonic avatar nelsonic commented on September 23, 2024

Deployed branch:
image

Get 503 error in logs because of lack of /favicon.ico 😮 😞
image

from hapi-socketio-redis-chat-example.

nelsonic avatar nelsonic commented on September 23, 2024

Attempted to use Heroku Buildpack for Elm apps: https://github.com/srid/heroku-buildpack-elm
got:
image

-----> Elm app detected
-----> Retrieving 0.18.0
2017-07-14 07:10:41 URL:https://s3.amazonaws.com/heroku-buildpack-elm/assets/elm/0.18.0/elm [1311192/1311192] -> "elm" [1]
2017-07-14 07:10:41 URL:https://s3.amazonaws.com/heroku-buildpack-elm/assets/elm/0.18.0/elm-package [6792960/6792960] -> "elm-package" [1]
2017-07-14 07:10:42 URL:https://s3.amazonaws.com/heroku-buildpack-elm/assets/elm/0.18.0/elm-make [10042432/10042432] -> "elm-make" [1]
-----> Fetching dependencies
       Starting downloads...
       
         ● elm-lang/dom 1.1.1
         ● elm-lang/core 5.1.1
         ● elm-lang/html 2.0.0
         ● NoRedInk/elm-decode-pipeline 3.0.0
         ● elm-lang/http 1.0.0
         ● elm-lang/virtual-dom 2.0.4
         ● elm-lang/window 1.0.1
         ● justinmimbs/elm-date-extra 2.0.3
       
       Packages configured successfully!
 !     Push rejected, failed to compile Elm app.
 !     Push failed

from hapi-socketio-redis-chat-example.

nelsonic avatar nelsonic commented on September 23, 2024

Read through previous issues on: https://github.com/srid/heroku-buildpack-elm/issues
specifically: https://github.com/srid/heroku-buildpack-elm/search?q=Push+rejected%2C+failed+to+compile+Elm+app&type=Issues&utf8=%E2%9C%93
found: srid/heroku-buildpack-elm#5
which suggests that using an app.json file might solve the issue ... 🤔

examples of app.json files:

from hapi-socketio-redis-chat-example.

nelsonic avatar nelsonic commented on September 23, 2024

Build (with elm make) succeeds on Heroku with the addition of app.json:
image

However the app still crashes because npm start is still trying to elm-make before starting:
image

from hapi-socketio-redis-chat-example.

nelsonic avatar nelsonic commented on September 23, 2024

Logs look promising:
image

from hapi-socketio-redis-chat-example.

finnhodgkin avatar finnhodgkin commented on September 23, 2024

Awesome, thanks for sorting it! Definitely a better solution than committing the compiled JS.

chat - google chrome_001

The elm version still has the same issue with huge overlapping side-scroll, but that should be an easy css fix.

from hapi-socketio-redis-chat-example.

nelsonic avatar nelsonic commented on September 23, 2024

@finnhodgkin yeah, we should add the side-scroll issue as a bug to be fixed. 👍
thanks again for opening this issue and reviewing my PR.
I learned a bit about app.json files and opened: dwyl/learn-heroku#10
(in case someone else wants to document it's usage)

from hapi-socketio-redis-chat-example.

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.