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

Development
  1. OpenProject
  2. Forums
  3. Development
  4. Noob trying to change something

Noob trying to change something

Added by Steven Schveighoffer almost 10 years ago

I just was trying to install a development copy of openproject so I can play around with adding the feature I talked about here: https://community.openproject.org/topics/4434

I’ve followed these instructions:

https://www.openproject.org/open-source/development/setting-development-environment/

The only thing I’ll note is that ‘bower install’ reports an error that it cannot find ‘bower.json’, in the git root directory.

When I go to the localhost:3000 address, I get this message:

couldn’t find file ‘bundles/openproject-global’
(in /home/steves/openproject/openproject/app/assets/stylesheets/default.css.sass:28)

I have no idea how ruby or rails works. The amount of “packages” downloaded by a multitude of package management software is extremely intimidating! You guys use a lot of external stuff.

I’m just trying to get to a working development installation so I can play with a couple lines of code. Any ideas on what I did wrong?


Replies (5)

RE: Noob trying to change something - Added by Stefan Botzenhart almost 10 years ago

You have to run bower install from within the “frontend” directory. This should create the missing files.

RE: Noob trying to change something - Added by Steven Schveighoffer almost 10 years ago

Stefan, Thanks for the help, but I had actually already tried that (did a find command to see if I could find any ‘bower.json’ files). The referenced page I linked above should probably be updated to fix the instructions (it does not say to run inside the frontend directory).

In any case, the result of running bower install there is no output, and no change, it still fails :(

RE: Noob trying to change something - Added by Stefan Botzenhart almost 10 years ago

Just checked out a fresh copy of openproject. I guess sth. has changed with bower or npm.

Running webpack within the “frontend” directory creates the missing files. These can then be found in app/assets/javascripts/bundles.

Worked for me. Can you confirm?

RE: Noob trying to change something - Added by Steven Schveighoffer almost 10 years ago

webpack as an application wasn’t found.

running:

find . -name webpack

And running the resulting binary (./frontend/node_modules/.bin/webpack) seems to have gotten an openproject screen up instead of an error so that is good :) (perhaps there is a more standard way to run that?)

But trying to log in as admin failed. I deleted the whole thing and started over, in case there was something I missed. And… with seeded data, it works!

So here is a list of things I think need work on the “setting up a development environment” page:

  1. I was using ruby 2.1.6 (which seems to be the latest 2.1.x branch), and I would get constant warnings that I wasn’t using 2.1.5. So I dropped back. The page says to use 2.1.4, which also gave warnings.
  2. It appears that the npm install command runs the bower install from the correct directory. I think this is likely why it didn’t do anything (it had already run on a previous step).
  3. Obviously, the thing with webpack
  4. The db:create:all command fails if you have not created a database for the ‘test’ mode (i.e. openproject_test) with a big exception.
  5. The page says running the seed is optional, but if you don’t run the seed, you cannot login or do anything (or if you can, I don’t know the user/password, it’s not admin/admin).
  6. When running the db:seed command, it opens about 200 web pages on my browser in new tabs. Seriously. I have no idea what the point of that is, can that be fixed?

Thank you for all your help! I would never have figured that out :D

If you would like, I can create a bug report for the list above.

RE: Noob trying to change something - Added by Stefan Botzenhart almost 10 years ago

Great to read you have your installation running. Please create the bug report. This would be gread. We then update the installation instructions.

The thing with the 200 tabs is most likely because of the letter_opener gem which opens all sent mails in the browser :unamused:

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