We are using homebrew as package manager to install all Weave dependencies.
$ brew install postgresql tomcat
Note: Weave is also compatible with Oracle Glassfish as Servlet Container and supports MySQL as RDBMS.
$ /user/local/Cellar/tomcat/7.0.16/libexec/bin/startup.sh
Please see the Apache Tomcat documentation for more configuration details.
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
$ 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
Available as download from github or, if you have git installed, clone via git:
$ git clone https://github.com/IVPR/Weave-Binaries.git
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/
Open the AdminConsole and add your database credentials.
Your Weave installation is now ready to use and available at http://127.0.0.1:8080/weave.html