X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f4ca9ad94a6bb006d1f3c7ba207837f1736d1247..75d2e3a89af09906b76315cf4fedc5e012841fcc:/doc/_includes/_install_rails_command.liquid diff --git a/doc/_includes/_install_rails_command.liquid b/doc/_includes/_install_rails_command.liquid index 319f56434a..b648e92161 100644 --- a/doc/_includes/_install_rails_command.liquid +++ b/doc/_includes/_install_rails_command.liquid @@ -1,8 +1,14 @@ +{% comment %} +Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: CC-BY-SA-3.0 +{% endcomment %} + {% comment %} This template recognizes four variables: * railshost: The hostname included in the prompt, to let the user know where to run the command. If this is the empty string, no hostname will be displayed. Default "apiserver". * railsdir: The directory included in the prompt, to let the user know where to run the command. Default "/var/www/arvados-api/current". -* railscmd: The full command to run. Default "bundle exec rails console". +* railscmd: The full command to run. Default "bin/rails console". * railsout: The expected output of the command, if any. {% endcomment %} Change *@webserver-user@* to the user that runs your web server process. If you install Phusion Passenger as we recommend, this is *@www-data@* on Debian-based systems, and *@nginx@* on Red Hat-based systems. @@ -19,20 +25,9 @@ This template recognizes four variables: {% endunless %} {% unless railscmd %} - {% assign railscmd = "bundle exec rails console" %} + {% assign railscmd = "bin/rails console" %} {% endunless %} -Using RVM: - - -
{{railshost}}~$ cd {{railsdir}}
-{{railshost}}{{railsdir}}$ sudo -u webserver-user RAILS_ENV=production `which rvm-exec` default {{railscmd}}
-{% if railsout %}{{railsout}}
-{% endif %}
-
- -Not using RVM: -
{{railshost}}~$ cd {{railsdir}}
 {{railshost}}{{railsdir}}$ sudo -u webserver-user RAILS_ENV=production {{railscmd}}