meteor

Trying to build a docker container, start.sh not found

十年热恋 提交于 2019-12-22 08:36:30
问题 I'm trying to build a docker container, but it doesn't seem to find my start.sh. It copies it to the container, but it somehow doesnt work. This is my dockerfile: FROM ubuntu:16.04 # Install Meteor RUN apt-get update RUN apt-get install -y curl RUN curl https://install.meteor.com/ | sh RUN meteor npm install --save highcharts # Entypointscript COPY start.sh / RUN chmod u+x /start.sh # Copy App COPY /app /app # UI Expose EXPOSE 80 ENTRYPOINT /start.sh And this is my start.sh: #!/bin/bash sleep

nginx, Meteor and Docker: Proxy SSL redirection does not work on localhost

99封情书 提交于 2019-12-22 08:18:56
问题 I am trying to set up nginx as a proxy server in front of a Meteor app. These will run in a Docker Container. What I would like to do is have every request to / be redirected as a as SSL call to the Meteor server (on port 8080). However, when I do this all that happens is that in the browser it comes back and says https://localhost and nothing happens, the Meteor app is not displayed. It is noted that I have created a self-signed SSL certificate where the server name is "localhost". However,

Unable to load javascript library into Meteor app

徘徊边缘 提交于 2019-12-22 07:44:36
问题 I'm having trouble using the fabric.js library with a Meteor app, and unfortunately I can't quite get past the stage of adding it to my app, much less invoking it. The easiest recreation is as follows: > mrt create test > cd test > mkdir client > curl -o ./client/all.js http://cdnjs.cloudflare.com/ajax/libs/fabric.js/1.2.0/fabric.all.min.js > mrt Going to localhost:3000 shows the following console output: Uncaught TypeError: Cannot read property 'object' of undefined all.js:4074 global.fabric

With Meteor, why should DOM manipulation NEVER be done with jQuery?

末鹿安然 提交于 2019-12-22 06:36:05
问题 I'm curious about the validity of this statement: A good rule of thumb is that if you're using jQuery to manipulate any DOM elements, you're probably doing it wrong. from the answer to this question: Meteor - How can I pass data between helpers and events for a template? The way I see it, jQuery is good because it can be surgical and manipulate many small parts of the DOM without having to change an entire code block. Templates in Meteor are great because that's precisely what they do - they

Canonical Way to use JQueryUI Autocomplete with Meteor

核能气质少年 提交于 2019-12-22 06:35:48
问题 Using Meteor, I'd like to understand the most efficient way to use JQuery UI's Autocomplete with large volumes of server-side data. I have two working proposals and would like to hear opinions on the differences and if there are any better ways to do the same thing. Using pub/sub: // Server Meteor.publish("autocompleteData", function (theSearchTerm) { var query = { name: { $regex: theSearchTerm, $options: 'i'} }; return MyData.find(query, options); }); // Client Template.myTemplate.rendered =

RangeError: Invalid array buffer length - Meteor JS

↘锁芯ラ 提交于 2019-12-22 05:33:07
问题 I was just coding (Meteor JS) when this error started to crop up, and I'm not even sure what caused it: buffer.js:25 const ui8 = new Uint8Array(size); ^ RangeError: Invalid array buffer length at new ArrayBuffer (native) at new Uint8Array (native) at createBuffer (buffer.js:25:17) at allocate (buffer.js:96:12) at new Buffer (buffer.js:56:12) at increaseBufferIfNecessary (C:\Users\admin\AppData\Local\.meteor\packages\meteor-tool\1.4.0-1\mtos.windows.x86_32\dev_bundle\lib\node_modules\stream

Accessing parent helper in Meteor

醉酒当歌 提交于 2019-12-22 05:29:31
问题 I often find myself dividing my work into templates that still could use the same helpers. So, say I have this template structure: <template name="MainTemplate"> <div>{{> FirstTemplate}}</div> <div>{{> SecondTemplate}}</div> <div>{{> ThirdTemplate}}</div> <div>{{> FourthTemplate}}</div> </template> Now each of these templates wants to use the same helper, let's call it dataHelper : Template.MainTemplate.helpers({ dataHelper: function() { //do some stuff return result } }) Sadly, this helper

Nginx proxy with Google OAuth 2.0

邮差的信 提交于 2019-12-22 05:25:15
问题 I have an Ubuntu 14.04 server and I have a meteor application that runs at localhost:3000 on this server. The public FQDN of my server is sub.example.com . The meteor application uses Google OAuth 2.0, I have the following configured in the Google API Console: URI REDIRECTION http://sub.example.com/_oauth/google http://sub.example.com/_oauth/google?close ORIGINES JAVASCRIPT http://sub.example.com My Nginx config file looks like this: server { listen 80 default_server; server_name sub.example

Robomongo connection with Meteor mongodb

天涯浪子 提交于 2019-12-22 05:24:07
问题 I have connected my localhost mongodb from robomongo but having problem in connecting Meteor mongodb. I am running Meteor from nitrousio not on localhost. In robomongo connection settings, it is showing "Connected to 'meteor_url:3001'. Authorization failed". I am using correct db in Authentication tab and nothing in username and password. Is this the root cause? If yes, what is the default username and pwd of mongodb? If no, then what should i do? 回答1: I set the Robomongo (v 0.8.4) connection

Meteor: Match error: Failed Match.OneOf or Match.Optional validation (websocket)

六月ゝ 毕业季﹏ 提交于 2019-12-22 05:20:37
问题 I have a website that uses Meteor 0.9. I have deployed this website on OpenShift (http://www.truthpecker.com). The problem I'm experiencing is that when I go to a path on my site (/discover), then sometimes (though not always), the data needed are not fetched by Meteor. Instead I get the following errors: On the client side: WebSocket connection to 'ws://www.truthpecker.com/sockjs/796/3tfowlag/websocket' failed: Error during WebSocket handshake: Unexpected response code: 400 And on the server