Skip to content
Browse files

Merge pull request #2 from pupeno/vagrant

More documentation and package nailgun
  • Loading branch information...
2 parents c49a426 + 9be1d6d commit ffe88d4e2fe150d32a247194dbce9ee772200488 @technomancy committed Oct 9, 2011
Showing with 14 additions and 9 deletions.
  1. +11 −0 README.md
  2. +3 −9 init.sh
View
11 README.md
@@ -33,6 +33,17 @@ Running in a production-like environment (Linux VM)
2. Install [Vagrant](http://vagrantup.com) by running: <tt>gem install vagrant</tt>. You may need to install [rubygems](http://rubygems.org) first.
3. Run <tt>vagrant up</tt> and wait, it'll take a while.
+Once the virtual machine is up and running you can access the web app at
+[localhost:8088](http://locahost:8088). To ssh into it you can just run
+`vagrant ssh`. To push new jars, ssh is forwarded from the local port 2222 so
+the command is:
+`scp -P 2222 foobar-0.0.1.jar pom.xml clojars@localhost:`. You can also ssh
+directly to port 2222 to the vagrant user, `ssh -p 2222 vagrant:localhost`,
+with the password "vagrant".
+
+When something goes wrong, inside the virtual machine, you can find the logs in
+`/var/log/clojar`.
+
Test data
---------
View
12 init.sh
@@ -3,7 +3,7 @@
apt-get update
apt-get install -y \
git-core openjdk-6-jdk tmux sqlite3 subversion nginx balance cronolog \
- emacs23 tree unzip rlwrap tmux curl
+ emacs23 tree unzip rlwrap tmux curl nailgun
# Leiningen
if [ ! -r /usr/local/bin/lein ]; then
@@ -38,14 +38,8 @@ if [ ! -r /home/clojars/prod ]; then
fi
# Nailgun
-if [ ! -r /home/clojars/nailgun ]; then
- svn co https://nailgun.svn.sourceforge.net/svnroot/nailgun/trunk/nailgun \
- /home/clojars/nailgun
- cd /home/clojars/nailgun
- chown -R clojars .
- sudo -u clojars make
- sudo cp ng /usr/local/bin
-fi
+# TODO: fix whatever is running nailgun to run the correct one.
+sudo ln -s /usr/bin/ng-nailgun /usr/local/bin/ng
# TODO: Nexus indexer, crontab

0 comments on commit ffe88d4

Please sign in to comment.
Something went wrong with that request. Please try again.