Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Heroku Installation

Heroku Installation

Added by Duarte Dias over 10 years ago

Hi, I tried to install open project on heroku. And followed the instructions gave by https://community.openproject.org/topics/959?board_id=6&r=3573#message-3573. But with no success. When deploying to Heroku I receive the following error:

$(npm bin)/webpack —config webpack.config.js
sh: 1: npm: not found
sh: 1: /webpack: not found
rake aborted!
Command failed with status (127): [$(npm bin)/webpack —config webpack.config…]
/tmp/build_addafd3a8b13336d55b30e0c7b60a02e/lib/tasks/assets.rake:47:in `block (2 levels) in <top (required)>’
Tasks: TOP => assets:precompile => assets:compile_environment => assets:webpack
(See full trace by running task with —trace)
!
! Precompiling assets failed.
!

! Push rejected, failed to compile Ruby app

To git@heroku.com:whispering-springs-1694.git
! [remote rejected] dev -> master (pre-receive hook declined)
error: failed to push some refs to ‘git@heroku.com:whispering-springs-1694.git’

Does anyone has any clue why I cant deploy? It works fine in localhost.
It seems that heroku cannot find npm? Why wouldnt heroku have npm installed?

Thanks for any help!


Replies (2)

RE: Heroku Installation - Added by Chris Seelus about 10 years ago

We added the assets npm requests to the Git repo before deploying, see here http://www.imeos.com/blog/2015/03/18/deploy-openproject-to-heroku-the-easy-way/

RE: Heroku Installation - Added by Haswin Devanjith over 7 years ago

Hi did you get this to work ?
following http://www.imeos.com/blog/2015/03/18/deploy-openproject-to-heroku-the-easy-way/

still got me into the same error.

  • (1 - 2/2)
Loading...