简体   繁体   中英

differences between gem file on local & heroku

I'm using the following gem in an app -

https://github.com/dekart/facebooker2

It seems to be rendering different javascript on my local machine than when deployed to server -

My local version looks like this -

window.fbAsyncInit = function() {
                        FB.init({
          appId  : 'MYAPPID',
          status : true, // check login status
          cookie : true, // enable cookies to allow the server to access the session
          xfbml  : true,  // parse XFBML
          channelUrl : 'http://MYLOCALURL.local/channel.html'
        });

The version on heroku looks like this -

window.fbAsyncInit = function() {
                        FB.init({
          appId  : 'MYAPPID',
          status : true, // check login status
          cookie : true, // enable cookies to allow the server to access the session
          xfbml  : true  // parse XFBML  - NO COMMA HERE CAUSING JS BUG
          channelUrl : 'https://MYLIVEURL.heroku.com/channel.html'
        });

In the heroku version, the javascript is missing a comma and thus causing a bug that stops the login button from displaying.

I've included the gem in my gem file like this -

gem 'facebooker2', :git=>"https://github.com/dekart/facebooker2.git"

Any idea why there would be this difference?

我重新启动服务器,现在本地&heroku相同。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM