THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Open source time tracking and resource planning web application for SMEs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Thomas Burkhalter bc1fa90528
Merge pull request #74 from puzzle/document_heroku_setup
6 days ago
.github/workflows Add haml-lint to code style review action 7 months ago
.s2i Install poppler during build 1 year ago
app Fix displayed times in journal and member log 1 week ago
bin Add git precommit hook for rubocop check 1 year ago
config Fix ticket #130 1 week ago
db Remove compensated hours from remaining hours 1 week ago
doc Remove broken dockerization attempt (cont'd). See also commit addfadf9. 1 week ago
git-hooks Add git precommit hook for rubocop check 1 year ago
images/s2i Add installation of specific Bundler version to s2i 7 months ago
lib Modify testusers to include employment_roles_employments 4 months ago
log move application code to empty rails 4 app 6 years ago
public Remove old error pages and use custom controller 1 year ago
test Fix letting everyone create journal entries on orders 1 week ago
vendor/assets display order controlling bar chart, refs #26963 2 years ago
.gitignore Add github action for rails tests 7 months ago
.haml-lint.yml Add haml-lint to code style review action 7 months ago
.haml-lint_todo.yml Add haml-lint to code style review action 7 months ago
.project remove unnecessary generate directory 8 years ago
.rubocop.yml Add rubocop linter action 7 months ago
.rubocop_todo.yml Merge pull request #110 from puzzle/the_great_linting 5 months ago
.ruby-gemset Add .ruby-gemset to project 7 months ago
.ruby-version Bump ruby version, fix security issue with rack 3 months ago
AUTHORS add standard docs 3 years ago
CHANGELOG.md Update CHANGELOG.md 3 months ago
CONTRIBUTING.md Link zu /doc/deploment/ angepasst 2 years ago
COPYING add standard docs 3 years ago
Gemfile bump rails version to 5.2.4.2 6 months ago
Gemfile.lock Update airbrake to latest version 6 days ago
LICENSE add standard docs 3 years ago
README.md Add section on heroku to README.md 6 days ago
Rakefile Replace gemsurance with bundle-audit, remove m gem 1 year ago
config.ru auto fix rubocop issues 5 years ago
docker-compose.yml Put Damians composefile back in place 1 year ago

README.md

Welcome to PuzzleTime

PuzzleTime is an open source time tracking and resource planning web application for SMEs.

Rails Unit Tests

Development

PuzzleTime is a Ruby on Rails application that runs on Ruby >= 2.2.2 and Rails 5. To get going, after you got a copy of PuzzleTime, issue the following commands in the main directory:

bin/setup            # install gem dependencies and setup database (PostgreSQL)
rake                 # run all the tests
rails db:setup       # prepare database
rails server         # start the rails server

A more detailed development documentation in German can be found in doc/development. This is where you also find some Deployment instructions

Heroku

The current master branch needs to be modified slightly for heroku. To achieve this we create a new branch

git checkout -b heroku_setup

Then we make the require changes for Memcache and Sendfile to production.rb

config.action_dispatch.x_sendfile_header = nil

config.cache_store = :mem_cache_store,
  (ENV["MEMCACHIER_SERVERS"] || "").split(","),
  {:username => ENV["MEMCACHIER_USERNAME"],
  :password => ENV["MEMCACHIER_PASSWORD"],
  :failover => true,
  :socket_timeout => 1.5,
  :socket_failure_delay => 0.2,
  :down_retry_delay => 60
  }

Then we commit these changes to our branch

git commit -am 'Changes for heroku'

Now we can deploy with these modifications to heroku

heroku create
git push heroku heroku_setup:master

heroku config:set RAILS_SERVE_STATIC_FILES=true 
heroku run rails assets:precompile

heroku addons:create memcachier:dev

heroku run rails db:migrate 
heroku run 'ln -s /app/db/seeds/development /app/db/seeds/production && rails db:seed'
heroku restart
heroku open

Then login using (username: mw, password: a) as credentials

License

PuzzleTime is released under the GNU Affero General Public License. Copyright 2006-2017 by Puzzle ITC GmbH. See COPYING for more details.