how to configure a rails servcer by ubuntu