Skip to content

Instantly share code, notes, and snippets.

@cspanring
Created July 13, 2011 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cspanring/1081165 to your computer and use it in GitHub Desktop.
Save cspanring/1081165 to your computer and use it in GitHub Desktop.
Weave Mac OS X installation instructions

Weave installation on Mac OS X

Dependencies

We are using homebrew as package manager to install all Weave dependencies.

Install PostgreSQL and Apache Tomcat

$ brew install postgresql tomcat

Note: Weave is also compatible with Oracle Glassfish as Servlet Container and supports MySQL as RDBMS.

Start Tomcat

$ /user/local/Cellar/tomcat/7.0.16/libexec/bin/startup.sh

Please see the Apache Tomcat documentation for more configuration details.

Start PostgreSQL

Please follow the instructions after the installation for initial PostgreSQL configuration. Once you have done that, you can start the database server with

$ pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start

Create Weave user and database

$ createuser weave
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) y
Shall the new role be allowed to create more new roles? (y/n) n

Set user password:

$ psql postgres
postgres=# ALTER ROLE weave WITH password 'mypassword';
ALTER ROLE
postgres=# \q

Create Weave database and set owner to user weave:

$ createdb weave -O weave

Install Weave

Download the latest Weave binaries

Available as download from github or, if you have git installed, clone via git:

$ git clone https://github.com/IVPR/Weave-Binaries.git

Add Weave to Tomcat

Copy all Weave files to your Tomcat installation:

$ cd Weave-Binaries
$ cp -R ROOT/* /usr/local/Cellar/tomcat/7.0.16/libexec/webapps/ROOT/
$ cp WeaveServices.war /usr/local/Cellar/tomcat/7.0.16/libexec/webapps/

Configure Weave database

Open the AdminConsole and add your database credentials.

Done!

Your Weave installation is now ready to use and available at http://127.0.0.1:8080/weave.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment