Skip to content

Git version of the dash-ingest Rails application. Supports creation and updates to metadata for datasets which are then ingested into the Merritt repository.

License

Notifications You must be signed in to change notification settings

marisastrong/dash-ingest

 
 

Repository files navigation

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/

About

Git version of the dash-ingest Rails application. Supports creation and updates to metadata for datasets which are then ingested into the Merritt repository.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 48.0%
  • CSS 40.8%
  • JavaScript 10.6%
  • CoffeeScript 0.6%