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 ## Configure the Workbench application
23 You need to update config/initializers/secret_token.rb. Generate a new secret with
27 and put it in `config/initializers/secret_token.rb`
29 Server::Application.config.secret_token = 'your-new-secret-here'
31 Adjust the following fields in your `environments/production.rb` file.
33 * `config.site_name` can be the URL of your workbench install.
34 * `config.arvados_login_base` and `config.arvados_v1_base` should point to
35 your API server. Use the example values as a guide.
36 * If you choose not to use https, make sure to also set
37 `config.force_ssl = false` in the API server's `production.rb` file.
41 Set up Apache and Passenger. Point them to the apps/workbench directory in the source tree.
43 ## "Trusted client" setting
45 Log in to Workbench once (this ensures that the Arvados API server has
46 a record of the Workbench client).
48 In the API server project root, start the rails console.
50 RAILS_ENV=production bundle exec rails c
52 Locate the ApiClient record for your Workbench installation.
54 ApiClient.where('url_prefix like ?', '%workbench%')
56 Set the `is_trusted` flag for the appropriate client record.
58 ApiClient.find(1234).update_attributes is_trusted: true