This repository has been archived by the owner. It is now read-only.
Git version of the dash-ingest Rails application. Supports creation and updates to metadata for datasets which are then ingested into the Merritt repository.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.sass-cache
app
config
coverage
db
doc
lib
log
public
script
spec
test
vendor
.gitignore
.rspec
.ruby-gemset
.ruby-version
404.html
422.html
500.html
Capfile
Gemfile
Gemfile.lock
README.md
README.txt
Rakefile
config.ru
development.sqlite3
favicon.ico
favicon.ico.bak
license.txt
robots.txt
test.sqlite3

README.md

These are the instructions to bring up the Rails environment for the dash-ingest codeline on your local machine.

Software:

ruby 2.1.2p95 Rails 3.2.19 Directories needed (create from top-level dash-ingest):

uploads test_uploads log tmp/backup tmp/pids tmp/cache tmp/sockets Modify as needed:

config/database.yml config/datashare.yml config/merritt.yml deploy.rb (if doing deployment) Run Rake task for populating the institution table, only when deploying the app for the first time on a server:

$ RAILS_ENV=env bundle exec rake db:setup (replace 'env' with the name of the current environment).

When running rails server, you have to specify the local environment like this: Why?

The local is an environment that Mark created and I think it’s a workaround for user login problems since you can’t easily get a shibboleth login locally because of encryption, certificates and having to run some shib software. It basically automatically logs you in to the app with a fake user. (It’s the user with NULL email address in the database.)

$ RAILS_ENV=local rails server Capistrano commands: (from your local if you have ssh on the server)

For development branch the cap deploy command is:

$ Cap development deploy BRANCH="branch name"

for other branches the cap deploy command is

$ Cap development deploy

Then issue the restart command

$ Cap development deploy:restart

The test command is:

$ rspec -fd spec/features/