public
Created

Weave Mac OS X installation instructions

  • Download Gist
readme-macosx.md
Markdown

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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.