webuildsg / webuild

:memo: Robot-handpicked list of open events and open source for designers, developers and makers in Singapore
https://webuild.sg/
MIT License
62 stars 33 forks source link

javascript not working production #239

Closed sayanee closed 8 years ago

sayanee commented 8 years ago

😱 😱 😨 😰 😓 😭 😂 😅 but! it's ok on staging

❗ Hence, search and video responsive size and title emojis are failing

image

form the deploy logs:

> webuild.sg@2.17.32 postinstall /var/lib/openshift/xxxxxxxxxxxxx/app-root/runtime/repo
> bower install || HOME=$HOME/app-root/runtime bower install && grunt build

/var/lib/openshift/xxxxxxxxxxxxx/app-root/runtime/repo/node_modules/bower/lib/node_modules/mkdirp/index.js:89
                    throw err0;
                    ^

Error: EACCES: permission denied, mkdir '/var/lib/openshift/xxxxxxxxxxxxx/.config'
    at Error (native)
    at Object.fs.mkdirSync (fs.js:842:18)
    at sync (/var/lib/openshift/xxxxxxxxxxxxx/app-root/runtime/repo/node_modules/bower/lib/node_modules/mkdirp/index.js:70:13)
    at Function.sync (/var/lib/openshift/xxxxxxxxxxxxx/app-root/runtime/repo/node_modules/bower/lib/node_modules/mkdirp/index.js:76:24)
    at Object.create.all.get (/var/lib/openshift/xxxxxxxxxxxxx/app-root/runtime/repo/node_modules/bower/lib/node_modules/configstore/index.js:39:13)
    at Object.Configstore (/var/lib/openshift/xxxxxxxxxxxxx/app-root/runtime/repo/node_modules/bower/lib/node_modules/configstore/index.js:28:44)
    at readCachedConfig (/var/lib/openshift/xxxxxxxxxxxxx/app-root/runtime/repo/node_modules/bower/lib/config.js:19:23)
    at defaultConfig (/var/lib/openshift/xxxxxxxxxxxxx/app-root/runtime/repo/node_modules/bower/lib/config.js:11:12)
    at Object.<anonymous> (/var/lib/openshift/xxxxxxxxxxxxx/app-root/runtime/repo/node_modules/bower/lib/index.js:16:32)
    at Module._compile (module.js:413:34)
[{
subhransu commented 8 years ago

I was about to report this. But saw you caught it already. 👍

notthetup commented 8 years ago

Fixed. npm install had failed to install bower properly. It should work now.

sayanee commented 8 years ago

Nope not working...

@subhransu check with the full API endpoint for now: https://webuild.sg/api/v1/events

sayanee commented 8 years ago

Thanks @notthetup - working 🎉

sayanee commented 8 years ago

ok it failed again due to another push. Here's how to fix it every time (this is a temporary fix until #240):

  1. rhc ssh --app production
  2. cd app-root/repo
  3. grunt build
  4. exit
  5. Cloudflare purge all cache / development mode

image

sayanee commented 8 years ago

solved in #240