You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

14 lines
545 B

# Global configuration file
# write here the list of format you want your application to output
$viewsToLoad=["JSON","XML","HTML"]
$static_files_directory='/static'
# the DB URL default is an sqlite db file: datas.db
# if the env variable DATABASE_URL is set it is the one choosen
# With this it works seemlessly with heroku
if ENV['GPENV'] == "PREPROD"
$db_url="postgres://mnyqdiisby:f5lxx1zz5pnorynqglhzmsp34@ec2-174-129-199-187.compute-1.amazonaws.com/mnyqdiisby"
else
$db_url=ENV['DATABASE_URL'] || %{sqlite3:///tmp/datas.db}
end