On my Ubuntu server with apache2/rails 3.0.3 I’d like to know which user runs my app.
Documentation and a lot of sources on the net says that the owner of config/environnement.rb is the one running the app.
If I ps -aux|grep apache, I can only see processes with www-data as the owner. There is no passenger or ruby or rails processes.
How can I know for sure which user is running my rails app?
Use
ps aux | grep -i passengeror if that doesn’t result in anything,ps aux | grep -i /application/directory/If it’s running as a passenger app, this will return the Passenger processes. Specifically, you’ll probably be looking for Passenger ApplicationSpawner: /your/app/public/