Skip to content
Snippets Groups Projects
Forked from PortalMEC / portalmec
2326 commits behind the upstream repository.
Israel Barreto Sant'Anna's avatar
Israel Barreto Sant'Anna authored
Created select to define the search class (LearningObject, Collection or User) and implemented the code to make it work with searchkick and autocomplete

Signed-off-by: default avatarIsrael Barreto Sant'Anna <ibsa14@inf.ufpr.br>
a207e096
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