Comments (10)
https://hapi-chat.herokuapp.com/elm (working on heroku):
cc: @finnhodgkin
from hapi-socketio-redis-chat-example.
@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.
from hapi-socketio-redis-chat-example.
Get 503
error in logs because of lack of /favicon.ico
😮 😞
from hapi-socketio-redis-chat-example.
Attempted to use Heroku Buildpack for Elm apps: https://github.com/srid/heroku-buildpack-elm
got:
-----> 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.
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:
- https://github.com/anicholson/elm-hangman/blob/master/app.json
- https://github.com/mdgriffith/elm-electron-todomvc/blob/master/app.json
from hapi-socketio-redis-chat-example.
Build (with elm make
) succeeds on Heroku with the addition of app.json
:
However the app still crashes because npm start
is still trying to elm-make
before starting:
from hapi-socketio-redis-chat-example.
from hapi-socketio-redis-chat-example.
Awesome, thanks for sorting it! Definitely a better solution than committing the compiled JS.
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.
@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)
- Error while running command npm start HOT 7
- Error. Can't run example. HOT 3
- Why do you use ports to send message instead of WebSocket.send HOT 1
- Unable to run the demo version in 2018 HOT 1
- Reply.view error HOT 2
- Send chat message from command line HOT 1
- Time and Date should be set on the serverside HOT 1
- Update Dependencies to latest version of Hapi
- Add CONTRIBUTING.md File to Repo
- Elm UI with Tachyons HOT 21
- Not working locally on npm start
- Empty message form submitting anyway HOT 1
- (DO NOT) UPDATE SOCKET.IO to v2
- Should we be using socket.io with elm? HOT 5
- Using Tachyons to replicate 'Send' form HOT 2
- Redis deprecation warnings on server start
- Epic: creating dwylchat HOT 1
- Create online users widget
- create initial design
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 hapi-socketio-redis-chat-example.