tutorial Deploying a Ruby app on a Linux/Unix production server: index files only !?

32 views
Skip to first unread message

Dominique 31

unread,
Jul 23, 2017, 5:38:54 AM7/23/17
to phusion-...@googlegroups.com
I've just followed the tutorial " Deploying a Ruby app on a Linux/Unix production server with Passenger in Apache mode on Debian 8 (with APT)"

Linux OrangePI 3.4.39 #1 SMP PREEMPT Sun Aug 30 14:14:50 CEST 2015 armv7l GNU/Linux
Apache/2.4.10 (Debian) Phusion_Passenger/4.0.53
ruby 2.1.5p273 (2014-11-13) [arm-linux-gnueabihf]


All the steps of the tutorial above have been performed.
And (for information) Rails "alone" seems working well. For example the "Getting Started with Rails" is ok (result http://localhost:3000 in the host linux displays the "welcome aboard" screen).

root@OrangePI:/var/www/myapp/code/public# cat /etc/apache2/sites-enabled/myapp.conf

<VirtualHost *:80>
    ServerName <my IP>

    # Tell Apache and Passenger where your app's 'public' directory is
    DocumentRoot /var/www/myapp/code/public

    PassengerRuby /usr/bin/ruby

    # Relax Apache security settings
    <Directory /var/www/myapp/code/public>
      Allow from all
      Options -MultiViews
      # Uncomment this if you're on Apache >= 2.4:
      Require all granted
    </Directory>
</VirtualHost>

root@OrangePI:/var/www/myapp/code/public# tail -F /var/log/apache2/error.log

[ 2017-07-23 11:12:46.0500 15084/b6f3d000 agents/Watchdog/Main.cpp:728 ]: All Phusion Passenger agents started!
[Sun Jul 23 11:12:46.167520 2017] [mpm_prefork:notice] [pid 24268] AH00163: Apache/2.4.10 (Debian) Phusion_Passenger/4.0.53 configured -- resuming normal operations
[Sun Jul 23 11:12:46.167711 2017] [core:notice] [pid 24268] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jul 23 11:14:29.449460 2017] [mpm_prefork:notice] [pid 24268] AH00173: SIGHUP received.  Attempting to restart
[ 2017-07-23 11:14:29.6253 15400/b6f83000 agents/Watchdog/Main.cpp:538 ]: Options: { 'analytics_log_user' => 'nobody', 'default_group' => 'www-data', 'default_python' => 'python', 'default_ruby' => 'ruby', 'default_user' => 'www-data', 'log_level' => '0', 'max_pool_size' => '6', 'passenger_root' => '/usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini', 'passenger_version' => '4.0.53', 'pool_idle_time' => '300', 'temp_dir' => '/tmp', 'union_station_gateway_address' => 'gateway.unionstationapp.com', 'union_station_gateway_port' => '443', 'user_switching' => 'true', 'web_server_passenger_version' => '4.0.53', 'web_server_pid' => '24268', 'web_server_type' => 'apache', 'web_server_worker_gid' => '33', 'web_server_worker_uid' => '33' }
[ 2017-07-23 11:14:29.6497 15403/b6f3b220 agents/HelperAgent/Main.cpp:650 ]: PassengerHelperAgent online, listening at unix:/tmp/passenger.1.0.24268/generation-6/request
[ 2017-07-23 11:14:29.6997 15409/b6fe5000 agents/LoggingAgent/Main.cpp:321 ]: PassengerLoggingAgent online, listening at unix:/tmp/passenger.1.0.24268/generation-6/logging
[ 2017-07-23 11:14:29.7005 15400/b6f83000 agents/Watchdog/Main.cpp:728 ]: All Phusion Passenger agents started!
[Sun Jul 23 11:14:29.842723 2017] [mpm_prefork:notice] [pid 24268] AH00163: Apache/2.4.10 (Debian) Phusion_Passenger/4.0.53 configured -- resuming normal operations
[Sun Jul 23 11:14:29.842910 2017] [core:notice] [pid 24268] AH00094: Command line: '/usr/sbin/apache2'

curl http://<my IP> lists only the files under /var/www/myapp/code/public

Is there an idea please ? thank you !

Daniel Knoppel

unread,
Jul 24, 2017, 6:03:01 AM7/24/17
to Phusion Passenger Discussions
I've just followed the tutorial " Deploying .. on Debian 8 (with APT)"
> Apache/2.4.10 (Debian) Phusion_Passenger/4.0.53

This cannot be right, because in Phusion's Debian APT packages Passenger is at version 5.1.6. You probably didn't install Passenger from the Phusion repo. 

- Daniel

Dominique 31

unread,
Jul 26, 2017, 5:01:08 PM7/26/17
to phusion-...@googlegroups.com
You're right .Sorry, I'am novice about the packages management (apt-get, gem,...).
I've re-installed them and here is now my configuration:

Server version: Apache/2.4.10 (Debian)
Phusion Passenger 5.1.6
ruby 2.1.5p273 (2014-11-13) [arm-linux-gnueabihf]
node --version : v0.10.29
gem --version : 2.2.2
Bundler version 1.15.3
Rails 4.2.1

The "development mode"  explained in the  tutorial "Quickstart: Ruby + Phusion Passenger" works...the "deployment mode" explained here
seems not working in my envt.
 Is there a log file to check ?

Daniel Knoppel

unread,
Jul 26, 2017, 5:24:25 PM7/26/17
to Phusion Passenger Discussions
Congrats on getting dev mode working :)


- Daniel

Daniel Knoppel

unread,
Jul 26, 2017, 5:26:00 PM7/26/17
to Phusion Passenger Discussions
I pasted the link for Nginx, you can switch to Apache in the box on the left (integration mode)

- Daniel
Reply all
Reply to author
Forward
0 new messages