metamod:install

This is an old revision of the document!


How to configure and install

The latest version of the documentation is always available in the code repository.

For instructions, read the official installation guide. Below is a short summary for illustration, which may or may not be up to date.

1. Add http://repo.met.no/devel to /etc/apt/sources.list as described here (sorry, currently not available outside met.no).

$ sudo apt-get install metno-perl-webdev-ver1
$ sudo apt-get install metno-metamod-2.10

FIXME - these packages is in the process of being rebuilt - please come back later

2. Copy the example config:

$ cp -r /opt/metno-metamod-2.10/app/example .

Then edit example/master_config.txt as needed. Decide if you want to connect to a local or external database. For local testing, set APPLICATION_USER to your own login.

3. To install all services:

$ /opt/metno-metamod-2.10/install_jobs.sh -u example
$ /opt/metno-metamod-2.10/common/prepare_runtime_env.sh example

4. If you decided to run a local database in step 2, this must now be created.

$ base/init/createusers.sh
$ create_and_load_all.sh example
$ run_createuserdb.sh example

5. Try starting Catalyst:

$ export PERL5LIB=/opt/metno-perl-webdev-ver1/lib/perl5
$ /opt/metno-metamod-2.10/catalyst/script/metamodweb_server.pl -d example

MetamodWeb should now be available on http://localhost:3000/. Stop with ctrl-c.

6. To start all services (substitute EXAMPLE with your APPLICATION_ID):

$ sudo /etc/init.d/catalyst-EXAMPLE start
$ sudo /etc/init.d/metamodServices-EXAMPLE start

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
  • metamod/install.1346925518.txt.gz
  • Last modified: 2022-05-31 09:23:19
  • (external edit)