Coder Social home page Coder Social logo

pstahl / digilys Goto Github PK

View Code? Open in Web Editor NEW

This project forked from digilys/digilys

0.0 2.0 0.0 1.4 MB

DigiLys is a system implementation of the work process Part

License: GNU Affero General Public License v3.0

Ruby 68.28% CoffeeScript 15.57% JavaScript 3.00% CSS 1.33% HTML 11.83%

digilys's Introduction

DigiLys

DigiLys is a system implementation of the work process Part: http://www.partinfo.se/om-part/utsikter/digilys/

License

Released under AGPL version 3. See COPYING.

The vendor assets directories (app/assets/javascripts/vendor, vendor/assets) contain third party code that may be released under other licenses stated in the start of each file.

Development environment

The application is a standard Ruby on Rails application.

Prerequisites

  • Ruby, the exact version is stated in .ruby-version.
    • It is recommended to use rbenv and ruby-build to manage Ruby.
  • PostgreSQL, version 9.2.
  • Bundler
  • memcached
    • Only required if running caching in development

Bootstrapping the development environment

  • Clone this repo
  • Add a config/database.yml with your database configuration
  • Create a config/app/base.private.yml with overrides for the required values in config/app/base.yml
  • bundle install
  • rake app:bootstrap app:create_admin
  • Take a look in db/seeds for development seeds. Run them using rails runner db/seeds/file.rb.
  • rails server

Development using Vagrant

Dependencies: Virtualbox and Vagrant

  • vagrant up
  • vagrant ssh
  • rake db:create db:setup
  • Follow the instructions above

Configuration

Configuration of the application is done using YAML files in config/app/. base.yml can be overridden using a base.private.yml file in the same directory. It's also possible to add a configuration per environment, see config/initializers/app_config.rb.

The different configuration options are described in config/app/base.yml.

YubiKey

It is possible to enable two-factor authentication using YubiKey. You can either use keys configured for YubiCloud, or it's possible to set up a private authentication server. For details, see https://www.yubico.com/

Deployment

Deployment is done via Capistrano.

Capistrano deploys to a server called digilys. To be able to deploy, you thus need a SSH entry which aliases the host digilys to your server.

The deployment is currently done from the local repository, not a remote which is the default behaviour of Capistrano. Deployment uses the currently checked out git branch.

  • Deploying: cap deploy deploy:migrate
  • Managing the application server: cap deploy:stop deploy:start

It is also possible to deploy to a different server by defining the environment variable digilys_instance, for example digilys_instance=digilys-test cap deploy deploy:migrate.

digilys's People

Contributors

ndreas avatar pstahl avatar hawry avatar alexanderekdahl avatar lottawissman avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.