Skip to content

Instantly share code, notes, and snippets.

@erpe
Created January 7, 2019 16:24
Show Gist options
  • Save erpe/caff9e77bc7d1b64eaee994db66d9299 to your computer and use it in GitHub Desktop.
Save erpe/caff9e77bc7d1b64eaee994db66d9299 to your computer and use it in GitHub Desktop.
apache2 nutzt auf ubuntu-bionic (18.04) PrivateTmp
d.h. nach jedem reboot von apache2 ändert sich dieses directory
um das zu umgehen entweder PrivateTmp=false in apache service file oder:
in jeweiliger vhosts conf:
PassengerInstanceRegistryDir /var/run/passenger-instance
in .bash_profile:
export PASSENGER_INSTANCE_REGISTRY_DIR=/var/run/passenger-instance
in config/deploy.rb: (oder angepasst an die jeweilige stage)
set :default_env, {
"PASSENGER_INSTANCE_REGISTRY_DIR" => "/var/run/passenger-instance"
}
in /etc/tmpfiles.d/passenger.conf:
D /var/run/passenger-instance 0755 root root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment