Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In the platform application:

  1. Run rake tasks as dpla (sudo -u dpla -i) in /srv/www/api (You may need to 'rbenv global 1.9.3-p547' first).
    Code Block
    languagebash
    $ bundle exec rake v1:create_and_deploy_index
    $ bundle exec rake v1:recreate_repo_api_key_database  # Even though you created dpla_api_auth above; for adding a view.
    $ bundle exec rails generate delayed_job
    $ bundle exec rails generate delayed_job:active_record
    $ bundle exec rake db:migrate 


...

Install virtualenv by typing pip install virtualenv.

Create a virtualenv environment where you will install the ingestion application. We tend to use /v1/ingestion as the virtualenv and put the application in /v1/ingestion/ingestion via git clone.  To  

You'll need to create this /v1 directory as root, which means you should  run

Code Block
exit; #only if you are currently sudo dpla
sudo mkdir /v1
sudo chmod a+rwx /v1
sudo -u dpla -i #become sudo dpla again


Create a virtualenv environment where you will install the ingestion application. To configure and set up the virtrualenv:

Code Block
languagebash
$ virtualenv -p /home/dpla/.pyenv/shims/python /v1/ingestion
$ source /v1/ingestion/bin/activate

Then, cd into /v1/ingestion and clone the ingestion application with

Code Block
git clone https://github.com/dpla/ingestion.git

In the ingestion application:

...