Top Menu

Jump to content
Home
    • Projects
    • Work packages
    • 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
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Professional 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?
      Create a new account

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
  • Roadmap
  • Work packages
  • Calendars
  • Team planners
  • Boards
  • Forums
  • Wiki
    • Table of contents
      • Expanded. Click to collapseCollapsed. Click to showDeveloper
        • Hierarchy leafAccessibility Checklist
        • Hierarchy leafCode Review Guidelines
        • Expanded. Click to collapseCollapsed. Click to showContribution
          • Hierarchy leafGit Workflow
          • Hierarchy leafTranslations
        • Expanded. Click to collapseCollapsed. Click to showDeveloping Plugins
          • Hierarchy leafDeveloping an OmniAuth Authentication Plugin
        • Hierarchy leafRelease Process
        • Hierarchy leafReport a bug
        • Hierarchy leafSecurity
        • Hierarchy leafSetting up an OpenLDAP server for testing
        • Hierarchy leafTheme Features
      • Hierarchy leafDownload
      • Expanded. Click to collapseCollapsed. Click to showFeature tour
        • Hierarchy leafRelease Notes OpenProject 30
        • Expanded. Click to collapseCollapsed. Click to showRelease Notes OpenProject 30 - Overview
          • Hierarchy leafGlossary
          • Hierarchy leafRelease Notes - Accessibility
          • Hierarchy leafRelease Notes - Accessibility changes
          • Hierarchy leafRelease Notes - Add work package queries as menu items to sidebar
          • Hierarchy leafRelease Notes - Copy projects based on Templates
          • Hierarchy leafRelease Notes - Design changes
          • Hierarchy leafRelease Notes - Fixed Bugs
          • Hierarchy leafRelease Notes - Keyboard Shortcuts
          • Hierarchy leafRelease Notes - Project settings
          • Hierarchy leafRelease Notes - Ruby&Rails Update
          • Hierarchy leafRelease Notes - Security
          • Hierarchy leafRelease Notes - Timelines
          • Hierarchy leafRelease Notes - Work packages
      • Hierarchy leafHowto create animated gifs
      • Hierarchy leafMigration Squashing
      • Hierarchy leafMod security
      • Hierarchy leafNew work package page
      • Hierarchy leafOP3 to OP4 Debian upgrade
      • Hierarchy leafOP4 Ubuntu1404 Stable with MySQL in production
      • Hierarchy leafOpenProject 40 Development Setup
      • Expanded. Click to collapseCollapsed. Click to showOpenProject Foundation
        • Hierarchy leafBoards
        • Hierarchy leafMembers
        • Hierarchy leafOPF-Meetings
        • Hierarchy leafStatutes
      • Expanded. Click to collapseCollapsed. Click to showRelease Notes
        • Hierarchy leafOpenProject released on Bitnami
      • Expanded. Click to collapseCollapsed. Click to showRelease Notes OpenProject 40 - Overview
        • Hierarchy leafRelease Notes OpenProject 40 - Accessibility improvements
        • Hierarchy leafRelease Notes OpenProject 40 - Column header functions in work package table
        • Hierarchy leafRelease Notes OpenProject 40 - Improved Design
        • Hierarchy leafRelease Notes OpenProject 40 - Integrated query title on work package page
        • Hierarchy leafRelease Notes OpenProject 40 - Integrated toolbar on work package page
        • Hierarchy leafRelease Notes OpenProject 40 - OmniAuth integration for OpenProject
        • Hierarchy leafRelease Notes OpenProject 40 - Work package details pane
      • Expanded. Click to collapseCollapsed. Click to showSecurity and privacy
        • Hierarchy leafFAQ
      • Expanded. Click to collapseCollapsed. Click to showSupport
        • Expanded. Click to collapseCollapsed. Click to showDownload and Installation
          • Hierarchy leafInstallation MacOS
          • Expanded. Click to collapseCollapsed. Click to showInstallation OpenProject 3 0
            • Hierarchy leafDebian Stable with MySQL in production
            • Hierarchy leafInstallation Ubuntu
            • Hierarchy leafInstallation Windows
            • Hierarchy leafInstallation on Centos 65 x64 with Apache and PostgreSQL 93
          • Expanded. Click to collapseCollapsed. Click to showInstallation OpenProject 40
            • Hierarchy leafOP4 Debian Stable with MySQL in production
          • Expanded. Click to collapseCollapsed. Click to showMigration paths
            • Hierarchy leafFrom Chilliproject to OpenProject
            • Hierarchy leafMigration 15 to 30
            • Hierarchy leafMigration 24 to 30
            • Hierarchy leafMigration Redmine 2x › OpenProject 30
            • Hierarchy leafOpenProject 3 Migration
          • Hierarchy leafOpenProject 40
        • Expanded. Click to collapseCollapsed. Click to showNews
          • Hierarchy leafNew OpenProject Translations Plugin
          • Hierarchy leafNew Plugin on OpenProjectorg Local Avatars
          • Hierarchy leafNew design for OpenProject
          • Hierarchy leafNews Accessibility workshop for OpenProject
          • Hierarchy leafNews Glossary for OpenProject
          • Hierarchy leafNews Heartbleed fixed
          • Hierarchy leafNews Icon Fonts
          • Hierarchy leafNews OpenProject 30 Release
          • Hierarchy leafNews Release GitHub Integration Plugin
          • Hierarchy leafNews Success Story Deutsche Telekom
          • Hierarchy leafNews Timelines
          • Hierarchy leafOpenProject 3013 released
          • Hierarchy leafOpenProject 3017 released
          • Hierarchy leafOpenProject 40 released
          • Hierarchy leafOpenProject 40 will be coming soon
          • Hierarchy leafOpenProject 405 released
          • Hierarchy leafOpenProject and pkgrio
          • Hierarchy leafOpenProject news moved to a new blog
          • Hierarchy leafOpenProjectBitnami
          • Hierarchy leafPackager version with plugins released ("Community edition")
          • Hierarchy leafRegistration OpenProject-Foundation
          • Hierarchy leafRelease OpenProject AuthPlugins
          • Hierarchy leafUpdates on OpenProject
          • Hierarchy leafWe need your feedback for the the new fullscreen view for work packages
        • Hierarchy leafOpenProject Plug-Ins
      • Hierarchy leafWiki
You are here:
  • Forums
  • Development

Content

Noob trying to change something

Added by Steven Schveighoffer over 7 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 over 7 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 over 7 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 over 7 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 over 7 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 over 7 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...