Skip to content
Snippets Groups Projects
Select Git revision
  • issue/70-hotfix-error-collection-resource-deleted
  • develop default protected
  • issue-68/streak-high_streak-last_action_at
  • issue/65-govbr
  • issue/54-curator-queue
  • issue/58-testar-s3
  • master protected
  • pre-submission
  • pre-languages
  • video-cache
  • tag-clustering-task
  • pre-api
  • orientdb
13 results

cleanning-portalmec

  • Clone with SSH
  • Clone with HTTPS
  • Forked from PortalMEC / portalmec
    2387 commits behind the upstream repository.
    user avatar
    Mateus Rambo Strey authored
    c36bdf07
    History

    Portal MEC

    build status

    Requirements

    • ruby >=2.2
    • rvm
    • Dspace server, with solr access allowed
    • Postgres
    • OrientDB

    Setup

    To setup the rails app, will be needed run active record migrations, orient db migrations and populate active record database:

    ./bin/setup

    Definitions

    Some definitions and vocabulary of project domain model.

    Deploy

    Before deploy to production server, some env vars need be set:

    Application Secrets

    The command 'rake secret' can be used for generate random string

    • SECRET_TOKEN
    • SECRET_KEY_BASE

    Postgres/Active Record credentials

    • PORTALMEC_DB_NAME
    • PORTALMEC_DB_USERNAME
    • PORTALMEC_DB_PASSWORD

    OrientDB credentials

    • PORTALMEC_ORIENTDB_HOST
    • PORTALMEC_ORIENTDB_DATABASE
    • PORTALMEC_ORIENTDB_USERNAME
    • PORTALMEC_ORIENTDB_PASSWD
    • PORTALMEC_ORIENTDB_PORT

    Dspace credentials

    • PORTALMEC_DSPACE_SOLR
    • PORTALMEC_DSPACE_REST
    • PORTALMEC_DSPACE_PORT
    • PORTALMEC_DSPACE_HOST

    Rails environment

    • RAILS_SERVE_STATIC_FILES - default is FALSE
    • RAILS_ENV: production, test or development

    Run:

    $ mina setup
    $ mina deploy