srtucker22/glipchat

Still crashing

kzali opened this issue · 3 comments

kzali commented

This is the log sorry
Your app is crashing. Here's the latest log.

/home/kam/.meteor/packages/meteor-tool/.1.1.4.xvre8c++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245
throw(ex);
^
TypeError: Cannot read property 'appId' of undefined
at server/lib/config.jsx:8:34
at /home/kam/quasar/.meteor/local/build/programs/server/app/server/lib/config.jsx.js:18:3
at /home/kam/quasar/.meteor/local/build/programs/server/boot.js:222:10
at Array.forEach (native)
at Function..each..forEach (/home/kam/.meteor/packages/meteor-tool/.1.1.4.xvre8c++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
at /home/kam/quasar/.meteor/local/build/programs/server/boot.js:117:5
Exited with code: 8
Your application is crashing. Waiting for file change.

                         Could be that I am doing something wrong with settings .json

                        also saw this in  scss.json

"useIndex" : true,
"includePaths": [
".meteor/local/build/programs/server/assets/packages/wolves_bourbon"
],
"indexFilePath" : "client/scss/main.scss"

no worries. thanks again for calling it out.

"includePaths": [
".meteor/local/build/programs/server/assets/packages/wolves_bourbon"
],
needed to go for sure

Your app was actually crashing due to the settings.json config. config.jsx was looking for facebook credentials, which the app actually doesn't use right now, so I've commented out that section of the config.jsx file. You will still need Google credentials in your settings.json however because the app lets users log in with Google. So your settings.json file should look at least something like:

    {
      "google" : {
        "clientId" : "YOUR_CLIENT_ID",
        "clientSecret" : "YOUR_CLIENT_SECRET"
      },
    }

to run the app with the settings: meteor --settings yourpathtosettings/settings.json

You can also always rip out the Google stuff if you're not interested in using it. Pretty sure all you would need to do is comment out the requirements in config.jsx and change the header.component.jsx component to not loginWithGoogle.

Let me know if it works out!

didn't mean to close the issue till it was resolved.

if everything's good on your end, we can close it :)

kzali commented

Thanks was getting a parse error on settings.json however when I manually
typed it and removed the comma after the second last curly it worked great.

{
"google" : {
"clientId" : "YOUR_CLIENT_ID",
"clientSecret" : "YOUR_CLIENT_SECRET"
}
}

I works great will play around and get back to you. will star the
project tonight.

regards

On Tue, Oct 20, 2015 at 11:06 AM, Simon Tucker notifications@github.com
wrote:

no worries. thanks again for calling it out.

"includePaths": [
".meteor/local/build/programs/server/assets/packages/wolves_bourbon"
], needed to go for sure

Your app was actually crashing due to the settings.json config. config.jsx
was looking for facebook credentials, which the app actually doesn't use
right now, so I've commented out that section of the config.jsx file. You
will still need Google credentials in your settings.json however because
the app lets users log in with Google. So your settings.json file should
look at least something like:

{
  "google" : {
    "clientId" : "YOUR_CLIENT_ID",
    "clientSecret" : "YOUR_CLIENT_SECRET"
  },
}

to run the app with the settings: meteor --settings
yourpathtosettings/settings.json

You can also always rip out the Google stuff if you're not interested in
using it. Pretty sure all you would need to do is comment out the
requirements in config.jsx
https://github.com/srtucker22/quasar/blob/master/server/lib/config.jsx
and change the header.component.jsx
https://github.com/srtucker22/quasar/blob/master/client/components/modules/header.component.jsx
component to not loginWithGoogle.

Let me know if it works out!


Reply to this email directly or view it on GitHub
#2 (comment).