Description:
Update README.rdoc
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r726:438ea3c69fc9 - - 1 file changed: 2 inserted, 2 deleted
@@ -91,25 +91,25 | |||||
|
91 | cafe@grader:~$ sudo sh -c 'echo deb https://oss-binaries.phusionpassenger.com/apt/passenger bionic main > /etc/apt/sources.list.d/passenger.list' |
|
91 | cafe@grader:~$ sudo sh -c 'echo deb https://oss-binaries.phusionpassenger.com/apt/passenger bionic main > /etc/apt/sources.list.d/passenger.list' |
|
92 | cafe@grader:~$ sudo apt-get update |
|
92 | cafe@grader:~$ sudo apt-get update |
|
93 | cafe@grader:~$ sudo apt-get install -y libapache2-mod-passenger |
|
93 | cafe@grader:~$ sudo apt-get install -y libapache2-mod-passenger |
|
94 | cafe@grader:~$ sudo a2enmod passenger |
|
94 | cafe@grader:~$ sudo a2enmod passenger |
|
95 |
|
95 | ||
|
96 |
|
96 | ||
|
97 | cafe@grader:~$ sudo apache2ctl restart |
|
97 | cafe@grader:~$ sudo apache2ctl restart |
|
98 |
|
98 | ||
|
99 | Finally, we should check that passenger is installed correctly. Run the following command and fix anything as suggested by the command. |
|
99 | Finally, we should check that passenger is installed correctly. Run the following command and fix anything as suggested by the command. |
|
100 |
|
100 | ||
|
101 | cafe@grader:~$ sudo /usr/bin/passenger-config validate-install |
|
101 | cafe@grader:~$ sudo /usr/bin/passenger-config validate-install |
|
102 |
|
102 | ||
|
103 | - Deploying the app. First, we determine the exact location of our ruby that is installed via RVM. |
|
103 | + 2. Deploying the app. First, we determine the exact location of our ruby that is installed via RVM. |
|
104 |
|
104 | ||
|
105 | cafe@grader:~$ passenger-config about ruby-command |
|
105 | cafe@grader:~$ passenger-config about ruby-command |
|
106 | passenger-config was invoked through the following Ruby interpreter: |
|
106 | passenger-config was invoked through the following Ruby interpreter: |
|
107 | Command: /home/cafe/.rvm/gems/ruby-2.3.7/wrappers/ruby |
|
107 | Command: /home/cafe/.rvm/gems/ruby-2.3.7/wrappers/ruby |
|
108 | Version: ruby 2.3.7p456 (2018-03-28 revision 63024) [x86_64-linux] |
|
108 | Version: ruby 2.3.7p456 (2018-03-28 revision 63024) [x86_64-linux] |
|
109 | To use in Apache: PassengerRuby /home/cafe/.rvm/gems/ruby-2.3.7/wrappers/ruby |
|
109 | To use in Apache: PassengerRuby /home/cafe/.rvm/gems/ruby-2.3.7/wrappers/ruby |
|
110 | To use in Nginx : passenger_ruby /home/cafe/.rvm/gems/ruby-2.3.7/wrappers/ruby |
|
110 | To use in Nginx : passenger_ruby /home/cafe/.rvm/gems/ruby-2.3.7/wrappers/ruby |
|
111 | To use with Standalone: /home/cafe/.rvm/gems/ruby-2.3.7/wrappers/ruby /usr/bin/passenger start |
|
111 | To use with Standalone: /home/cafe/.rvm/gems/ruby-2.3.7/wrappers/ruby /usr/bin/passenger start |
|
112 |
|
112 | ||
|
113 | Then, take note of the path after "Command". For this guide, it is /home/cafe/.rvm/gems/ruby-2.3.7/wrappers/ruby |
|
113 | Then, take note of the path after "Command". For this guide, it is /home/cafe/.rvm/gems/ruby-2.3.7/wrappers/ruby |
|
114 |
|
114 | ||
|
115 | Assuming that cafe-grader is installed at /home/cafe/cafe_grader, we will edit the Apache's site config file /etc/apache2/site-enabled/000-default.conf as follow. |
|
115 | Assuming that cafe-grader is installed at /home/cafe/cafe_grader, we will edit the Apache's site config file /etc/apache2/site-enabled/000-default.conf as follow. |
@@ -132,14 +132,14 | |||||
|
132 | Allow from all |
|
132 | Allow from all |
|
133 | Options -MultiViews |
|
133 | Options -MultiViews |
|
134 | Require all granted |
|
134 | Require all granted |
|
135 | </Directory> |
|
135 | </Directory> |
|
136 | </VirtualHost> |
|
136 | </VirtualHost> |
|
137 |
|
137 | ||
|
138 |
|
138 | ||
|
139 | Be noted that we make 3 modifications: 1) change DocumentRoot, 2) add PassengerRuby option and add 3) Directory directive |
|
139 | Be noted that we make 3 modifications: 1) change DocumentRoot, 2) add PassengerRuby option and add 3) Directory directive |
|
140 | As the last step, we restart apache again and the site is ready to be used. |
|
140 | As the last step, we restart apache again and the site is ready to be used. |
|
141 |
|
141 | ||
|
142 | cafe@grader:~$ sudo apache2ctl restart |
|
142 | cafe@grader:~$ sudo apache2ctl restart |
|
143 |
|
143 | ||
|
144 |
- |
|
144 | + Now it is done, you can login to the grader with user 'root' and password 'ioionrails' |
|
145 |
|
145 |
You need to be logged in to leave comments.
Login now