Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploying in heroku #871

Open
s2krish opened this issue Sep 27, 2016 · 0 comments
Open

Deploying in heroku #871

s2krish opened this issue Sep 27, 2016 · 0 comments

Comments

@s2krish
Copy link

s2krish commented Sep 27, 2016

I have some issue with deploying in heroku. I got following error (Full error log is below at the end):

module.js:340
    throw err;
          ^
Error: Cannot find module 'promise'
    at Function.Module._resolveFilename (modul

For the time being, I have used less.js.

Full error message:

Running python manage.py compress --force on ⬢ timepro2... up, run.9827
Found 'compress' tags in:
    /app/timepiece/templates/timepiece/project/create_edit.html
    /app/templates/registration/password_reset_form.html
    /app/templates/registration/password_change_form.html
    /app/timepiece/templates/timepiece/entry/clock_out.html
    /app/timepiece/templates/timepiece/schedule/view.html
    /app/timepiece/templates/timepiece/quick_search.html
    /app/templates/registration/password_change_done.html
    /app/timepiece/templates/timepiece/business/view.html
    /app/timepiece/templates/timepiece/entry/clock_in.html
    /app/timepiece/templates/timepiece/base.html
    /app/timepiece/templates/timepiece/user/settings.html
    /app/timepiece/templates/timepiece/reports/payroll_summary.html
    /app/timepiece/templates/timepiece/relationship/delete.html
    /app/timepiece/templates/timepiece/schedule/edit.html
    /app/timepiece/templates/timepiece/entry/create_edit.html
    /app/timepiece/templates/timepiece/project/base.html
    /app/timepiece/templates/timepiece/invoice/list.html
    /app/timepiece/templates/timepiece/business/list.html
    /app/timepiece/templates/timepiece/invoice/view_entries.html
    /app/timepiece/templates/timepiece/project/view.html
    /app/timepiece/templates/timepiece/invoice/create.html
    /app/timepiece/templates/timepiece/contract/base.html
    /app/timepiece/templates/timepiece/business/create_edit.html
    /app/timepiece/templates/timepiece/contract/view.html
    /app/timepiece/templates/timepiece/invoice/delete.html
    /app/timepiece/templates/timepiece/reports/estimation_accuracy.html
    /app/timepiece/templates/timepiece/reports/hourly.html
    /app/timepiece/templates/timepiece/project/list.html
    /app/timepiece/templates/timepiece/reports/base.html
    /app/timepiece/templates/timepiece/schedule/base.html
    /app/timepiece/templates/timepiece/user/base.html
    /app/timepiece/templates/timepiece/user/create_edit.html
    /app/timepiece/templates/timepiece/user/view.html
    /app/timepiece/templates/timepiece/user/timesheet/reject.html
    /app/templates/registration/password_reset_done.html
    /app/timepiece/templates/timepiece/entry/delete.html
    /app/timepiece/templates/timepiece/project/timesheet.html
    /app/templates/registration/login.html
    /app/timepiece/templates/timepiece/entry/reject.html
    /app/timepiece/templates/timepiece/business/base.html
    /app/timepiece/templates/timepiece/user/timesheet/view.html
    /app/templates/500.html
    /app/timepiece/templates/timepiece/invoice/delete_entry.html
    /app/templates/registration/password_reset_confirm.html
    /app/timepiece/templates/timepiece/invoice/outstanding.html
    /app/timepiece/templates/timepiece/reports/productivity.html
    /app/timepiece/templates/timepiece/invoice/view.html
    /app/timepiece/templates/timepiece/dashboard.html
    /app/timepiece/templates/timepiece/delete_object.html
    /app/timepiece/templates/timepiece/contract/list.html
    /app/timepiece/templates/timepiece/user/list.html
    /app/templates/404.html
    /app/timepiece/templates/timepiece/invoice/base.html
    /app/timepiece/templates/timepiece/reports/billable_hours.html
    /app/templates/registration/password_reset_complete.html
    /app/timepiece/templates/timepiece/relationship/edit.html
    /app/timepiece/templates/timepiece/invoice/edit.html
    /app/timepiece/templates/timepiece/user/timesheet/change.html
Compressing... CommandError: An error occurred during rendering /app/timepiece/templates/timepiece/project/create_edit.html: 
module.js:340
    throw err;
          ^
Error: Cannot find module 'promise'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.module.exports.render (/app/.heroku/python/lib/node_modules/less/lib/less/render.js:12:71)
    at parseLessFile (/app/.heroku/python/lib/node_modules/less/bin/lessc:459:14)
    at fs.readFile (fs.js:176:14)
    at Object.oncomplete (fs.js:297:15)

less installation log:

remote: -----> Running install_lessc
remote: npm http GET https://registry.npmjs.org/less
remote: npm http 200 https://registry.npmjs.org/less
remote: npm http GET https://registry.npmjs.org/less/-/less-2.7.1.tgz
remote: npm http 200 https://registry.npmjs.org/less/-/less-2.7.1.tgz
remote: npm WARN engine [email protected]: wanted: {"node":">=0.12"} (current: {"node":"v0.8.12","npm":"1.1.63"})
remote: npm http GET https://registry.npmjs.org/errno
remote: npm http GET https://registry.npmjs.org/graceful-fs
remote: npm http GET https://registry.npmjs.org/image-size
remote: npm http GET https://registry.npmjs.org/mime
remote: npm http GET https://registry.npmjs.org/mkdirp
remote: npm http GET https://registry.npmjs.org/promise
remote: npm http GET https://registry.npmjs.org/source-map
remote: npm http 200 https://registry.npmjs.org/errno
remote: npm http 200 https://registry.npmjs.org/image-size
remote: npm http 200 https://registry.npmjs.org/mime
remote: npm http 200 https://registry.npmjs.org/graceful-fs
remote: npm http 200 https://registry.npmjs.org/mkdirp
remote: npm http 200 https://registry.npmjs.org/promise
remote: npm WARN optional dep failed, continuing errno@^0.1.1
remote: npm WARN optional dep failed, continuing mime@^1.2.11
remote: npm WARN optional dep failed, continuing graceful-fs@^4.1.2
remote: npm WARN optional dep failed, continuing mkdirp@^0.5.0
remote: npm WARN optional dep failed, continuing promise@^7.1.1
remote: npm http GET https://registry.npmjs.org/image-size/-/image-size-0.5.0.tgz
remote: npm http 200 https://registry.npmjs.org/source-map
remote: npm WARN optional dep failed, continuing source-map@^0.5.3
remote: npm http 200 https://registry.npmjs.org/image-size/-/image-size-0.5.0.tgz
remote: npm WARN engine [email protected]: wanted: {"node":">=0.10.0"} (current: {"node":"v0.8.12","npm":"1.1.63"})
remote: /app/.heroku/python/bin/lessc -> /app/.heroku/python/lib/node_modules/less/bin/lessc
remote: [email protected] /app/.heroku/python/lib/node_modules/less
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant