Comments (6)
Hi there! Great to hear you're excited :D
I haven't tried to setup NAF on Heroku yet but I'd like to include it as a default configuration soon. That being said, try changing the package.json's "start" script to node ./server/server.js
. The reference to watchify isn't necessary on a deployed instance so hopefully this works! I'll let you know when I've given it a shot myself too. Would love to hear if you get it working.
from networked-aframe.
Thank you for the help!
Ah, makes sense that watchify isn't needed since that is only for watching local dev changes and refreshing the browser on the fly?
I tried changing the start script to what you said, and removing the Procfile I had created, but I still get an error, here is the complete log:
2017-03-20T15:05:37.630656+00:00 heroku[web.1]: Starting process with command `npm start`
2017-03-20T15:05:41.298355+00:00 app[web.1]:
2017-03-20T15:05:41.298372+00:00 app[web.1]: > [email protected] start /app
2017-03-20T15:05:41.298373+00:00 app[web.1]: > node ./server/server.js
2017-03-20T15:05:41.298374+00:00 app[web.1]:
2017-03-20T15:05:41.824443+00:00 app[web.1]: info - EasyRTC: Starting EasyRTC Server (v1.1.0) on Node (v7.1.0)
2017-03-20T15:05:41.825889+00:00 app[web.1]: debug - EasyRTC: Emitting event 'startup'
2017-03-20T15:05:41.826832+00:00 app[web.1]: debug - EasyRTC: Running func 'onStartup'
2017-03-20T15:05:41.829707+00:00 app[web.1]: listening on http://localhost:8080
2017-03-20T15:05:41.831583+00:00 app[web.1]: debug - EasyRTC: Configuring Http server
2017-03-20T15:05:41.831816+00:00 app[web.1]: debug - EasyRTC: Setting up API files to be accessed from '/easyrtc/'
2017-03-20T15:05:41.834114+00:00 app[web.1]: debug - EasyRTC: Configuring Socket server
2017-03-20T15:05:41.858735+00:00 app[web.1]: info - EasyRTC: EasyRTC Server Ready For Connections (v1.1.0)
2017-03-20T15:05:41.835032+00:00 app[web.1]: debug - EasyRTC: Creating application: 'default'
2017-03-20T15:05:41.859369+00:00 app[web.1]: Initiated
2017-03-20T15:05:41.840717+00:00 app[web.1]: debug - EasyRTC: [default] Room [default] Running func 'onRoomCreate'
2017-03-20T15:05:41.843211+00:00 app[web.1]: debug - EasyRTC: Creating room: 'default' with options: {}
2017-03-20T15:06:37.929784+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2017-03-20T15:06:37.930025+00:00 heroku[web.1]: Stopping process with SIGKILL
2017-03-20T15:06:38.073288+00:00 heroku[web.1]: State changed from starting to crashed
2017-03-20T15:06:38.078097+00:00 heroku[web.1]: Process exited with status 137
2017-03-20T15:06:39.347796+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=shrouded-headland-88245.herokuapp.com request_id=d2675aa5-87e7-4840-adf8-6486cd59c8c6 fwd="24.218.185.235" dyno= connect= service= status=503 bytes= protocol=https
Seems like it waits a minute for the port to bind and then it gives up?
from networked-aframe.
In case this is easier to see, here is the relevant error line I think?
2017-03-20T15:06:37.929784+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
from networked-aframe.
Hi! I got it working!
https://shrouded-headland-88245.herokuapp.com/basic.html
I just had to change 8080
to process.env.PORT
in server.js
Let me know if you'd like to know anything more about how I did the deploy on Heroku, would be happy to tell you whatever I did. I think the only changes were the port line and the start script you mentioned.
from networked-aframe.
Ah! I have a new issue now, I can open the Heroku URL on two tabs on my Macbook and the networking works. Then, when I try the same URL on my Google Pixel (which should be a third user), the URL loads and the app loads, but it's not networked, just a lonely instance.
I am leaving this comment here just fyi on my progress, but if the problem persists I can open a new issue for that, and close this issue anytime.
from networked-aframe.
Awesome! I've added the port fix to the main branch: #5
Changed the npm start script: 828034f
And I just published a tutorial on getting started that should help a lot!
Tutorial: Getting started with Networked-Aframe.
The mobile issue has been reported here: #2 I haven't reproduced yet but will be taking a look shortly.
Thanks for your investigation!
from networked-aframe.
Related Issues (20)
- NPM install errors. HOT 9
- Disconnecting when going to a new browser Tab after some time. HOT 13
- Nametag: Not a issue but a question. HOT 2
- Be in networked aframe but not be there? HOT 4
- didn't manage to get hand tracking working HOT 5
- User in new position with each refresh?
- Add ability to add networked entity to non-networked parent HOT 7
- Share Screen Issue HOT 1
- stuck with npm i on a RPi Zero HOT 5
- Write a "how it works" documentation HOT 12
- Not a issue but really need some help. Trying to add pre-text pharses above the character. HOT 1
- networked-video-source should respect the video aspect ratio HOT 1
- Create a web component to show connected users HOT 10
- [networked-audio-zone] Private audio zone HOT 1
- https for audio? HOT 1
- Audio chat example low volume? HOT 10
- Deactivate synchronization for child nodes? HOT 9
- Deletion of a component in the NAF schema is not replicated HOT 2
- Updated state not being replicated to new joiners to a scene HOT 2
- Fix networked-video-source has a bad color space with a-frame v1.5.0
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 networked-aframe.