Skip to content

Common Tasks

Mark Bussey edited this page Apr 22, 2018 · 16 revisions
  • Start the VM if it's not running

    1. Open a new terminal window
    2. Change directory to the directory with your Vagrantfile in it
    3. Type vagrant up
  • Connect to the VM

    1. Type vagrant ssh from the directory with your Vagrantfile in it
  • Start a rails console

    1. Make sure you're connected to the VM
    2. Type cd /vagrant/ohsu2018 to change directory to the root of your rails application
    3. Type rails console to enter the console (or rails c for shorthand)
    4. Type exit when you're done to return to the command line
  • Start solr, fedora, and web servers

    1. You'll generally want to open a separate terminal and connect to a new ssh session where you can leave the servers running
    2. Type cd /vagrant/ohsu2018 to change directory to the root of your rails application
    3. Type rails hydra:server to start Solr, Fedora, and the Web server
  • Restart solr if you get an error like "ERROR: Core 'hydra-development' already exists!"

    1. Enter rails hydra:server a second time and the error should clear itself.