Skip to content

Commit

Permalink
Use /vagrant as synced dir instead of ~/synced; Closes #9
Browse files Browse the repository at this point in the history
  • Loading branch information
Cory Lown committed Jan 3, 2017
1 parent fe4cd9f commit 3170c10
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,16 @@ Other vagrant commands you may find useful:
$ vagrant status # see which VMS are running

`vagrant ssh` puts you in `/home/vagrant` on the guest VM. The application
directory will be mounted in the guest under `$HOME/synced`, and any changes you make to the files will
directory will be mounted in the guest under `/vagrant`, and any changes you make to the files will
be reflected in both host and guest.

On first boot, you should have a `ruby` and `gem` executable on your PATH. Execute

$ synced/install.sh
$ /vagrant/install.sh

(or)

$ cd synced
$ cd /vagrant
$ ./install.sh

And your environment should be ready to go, with all gems installed and database initialized. You'll still need to start sidekiq before you can start the application (see below).
Expand Down Expand Up @@ -112,7 +112,7 @@ See the [Spofford Client](https://github.com/trn/spofford-client`) for a tool th

Sidekiq must be running before you start your Rails process, if you want to process ingest packages. Currently this is not set up as an automatically running system service, so you'll need to, in a separate VM session, execute the following:

$ cd synced
$ cd /vagrant
$ bundle exec sidekiq

If you don't, your uploads will get processed but nothing will happen with them.
Expand Down
4 changes: 2 additions & 2 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Vagrant.configure(2) do |config|
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
config.vm.synced_folder ".", "/home/vagrant/synced"
config.vm.synced_folder ".", "/vagrant", type: 'virtualbox'

# Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options.
Expand Down Expand Up @@ -168,7 +168,7 @@ TMPL
echo '# Added by provisioner' >> $RCFILE
echo 'export PATH="\${PATH}":/usr/pgsql-9.5/bin' >> $RCFILE
fi
echo "Run synced/install.sh next after you log in to set up the Rails dependencies"
echo "Run /vagrant/install.sh next after you log in to set up the Rails dependencies"
SHELL

end
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

# should only need to run this once!
cd ~vagrant/synced
cd /vagrant
gem install bundle
gem install yajl
bundle install
Expand Down

0 comments on commit 3170c10

Please sign in to comment.