https://github.com/gwendall/meteor-remote-autoupdate
Watch a remote server for hot code pushes
https://github.com/gwendall/meteor-remote-autoupdate
Last synced: about 2 months ago
JSON representation
Watch a remote server for hot code pushes
- Host: GitHub
- URL: https://github.com/gwendall/meteor-remote-autoupdate
- Owner: gwendall
- Created: 2015-03-20T18:45:43.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-08-07T14:20:42.000Z (almost 8 years ago)
- Last Synced: 2025-04-04T22:46:59.358Z (about 2 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 13
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```diff
- NOTE: This package is not maintained anymore.
- If you want to help, please reach out to [email protected]
```Meteor Remote Autoupdate
========================Watch a remote server for hot code pushes.
Installation
------------``` sh
meteor add gwendall:remote-autoupdate
```Method
----------**RemoteAutoupdate(url)** (client-only)
``` javascript
RemoteAutoupdate("http://localhost:5000");
```What is solves
--------------Building cross platform services (web + Cordova), you may want to split your project into two separate apps:
- one holding your Cordova client code (deployed on server A)
- the other one holding your whole server logic + web views (on server B)In this case, you will define a --mobile-server flag while building your Cordova app so that all your DDP connections are made to server B. However, you then lose the ability to receive hot code pushes for your Cordova app, as it will now watch server B for code changes, whilst your Cordova code is on server A.
This package simply patches the Autoupdate package so that it can watch changes on another server. Problem solved.Notes
------ Make sure to pass the proper URL holding your client code. Otherwise, you will fall into an infinite refresh loop, as the client will always find a different code on the server.
- Not tested extensively, feel free to report any bug.