Note that there are some explanatory texts on larger screens.

plurals
  1. PODeploying Node.JS app to Heroku - Caching issues?
    primarykey
    data
    text
    <p>I'm currently trying to push my app to Heroku. I already been able to deploy it a few times, but now I've updated mongoose from ">= 3.5.0" to ">= 3.6.0rc0" in my packages.json file. However, version 3.6 requires mpath and mpromise.</p> <p>When the slug compilation begins, it uses a cached version of mongoose or something, as my when my application launches, I get "Error: Cannot find module 'mpath'". </p> <p>I trying to setup a custom buildpack Git that would stop the caching, I just commented out the cache stuff in bin/compile, available here: <a href="https://github.com/jValdron/heroku-buildpack-nodejs" rel="nofollow">https://github.com/jValdron/heroku-buildpack-nodejs</a></p> <p>Here is an output of the push: <a href="http://pastebin.com/L3Yqy2NR" rel="nofollow">http://pastebin.com/L3Yqy2NR</a></p> <p>Also, when I removed some dependencies from package.json, if I login with 'heroku run bash', I can see that those removed dependencies in node_modules. I already tried to remove the node_modules folder and do another 'git push', that didn't work either. And those removed deps are still in node_modules.</p> <p>Anyone have an idea on how to fix this?</p> <p>EDIT:</p> <p>Here is my package.json file: </p> <pre><code>{ "name": "souply-api", "version": "0.1.0", "author": "Jason Valdron &lt;jason.valdron@orangesprocket.com&gt;", "description": "Main gears that runs the Soup.ly application", "dependencies": { "bcrypt": "&gt;= 0.7.3", "express": "&gt;= 3.0.5", "extend": "&gt;= 1.1.3", "imagemagick": "&gt;= 0.1.3", "jade": "&gt;= 0.27.7", "knox": "&gt;= 0.4.6", "less": "&gt;= 1.3.1", "less-middleware": "&gt;= 0.1.9", "moment": "&gt;= 1.7.2", "mongoose": "&gt;= 3.6.0rc0", "mongoose-types": "&gt;= 1.0.3", "node-native-zip": "&gt;= 1.1.0", "nodemailer": "&gt;= 0.3.37", "oauth2orize": "&gt;= 0.1.0", "passport": "&gt;= 0.1.15", "passport-local": "&gt;= 0.1.6", "passport-google": "&gt;= 0.2.0", "passport-facebook": "&gt;= 0.1.4", "passport-twitter": "&gt;= 0.1.4", "passport-http": "&gt;= 0.2.1", "passport-http-bearer": "&gt;= 0.2.0", "passport-oauth2-client-password": "&gt;= 0.1.0", "poor-form": "&gt;= 1.1.3", "request": "&gt;= 2.12.0", "socket.io": "&gt;= 0.9.13" }, "engines": { "node": "0.8.x", "npm": "1.1.x" } } </code></pre> <p>Mongoose is set as 3.6.0rc, as previously said. Mpath is a dependencies in Mongoose's package.json file. If I look at my local mongoose package.json file, I can see this:</p> <pre><code>"dependencies": { "hooks": "0.2.1" , "mongodb": "1.2.11" , "ms": "0.1.0" , "sliced": "0.0.3" , "muri": "0.3.0" , "mpromise": "0.2.0" , "mpath": "0.1.1" } </code></pre> <p>Also, if I login with <code>heroku run bash</code>, and navigate to <code>node_modules/mongoose/node_modules</code> I see that mpath and mpromise is not there.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload