3 navsection: installguide
4 title: Install the Arvados workbench application
8 {% include alert-stub.html %}
14 1. A GNU/linux (virtual) machine (can be shared with the API server)
15 2. A hostname for your workbench application
17 ## Download the source tree
19 Please follow the instructions on the [Download page](https://arvados.org/projects/arvados/wiki/Download) in the wiki.
21 The workbench application is in `apps/workbench`.
23 ## Configure the Workbench application
25 You need to update config/initializers/secret_token.rb. Generate a new secret with
29 and put it in `config/initializers/secret_token.rb`
31 Server::Application.config.secret_token = 'your-new-secret-here'
33 Adjust the following fields in your `environments/production.rb` file.
35 * `config.site_name` can be the URL of your workbench install.
36 * `config.arvados_login_base` and `config.arvados_v1_base` should point to
37 your API server. Use the example values as a guide.
38 * If you choose not to use https, make sure to also set
39 `config.force_ssl = false` in the API server's `production.rb` file.
41 Copy `config/piwik.yml.example` to `config/piwik.yml` and edit to suit.
45 Set up Apache and Passenger. Point them to the apps/workbench directory in the source tree.
47 ## "Trusted client" setting
49 Log in to Workbench once (this ensures that the Arvados API server has
50 a record of the Workbench client).
52 In the API server project root, start the rails console.
54 RAILS_ENV=production bundle exec rails c
56 Locate the ApiClient record for your Workbench installation.
58 ApiClient.where('url_prefix like ?', '%workbench%')
60 Set the `is_trusted` flag for the appropriate client record.
62 ApiClient.find(1234).update_attributes is_trusted: true