use combined template with conditional ssl
file mode for site available
fix db check, but its ugly...
use variable for rails env