old_contents: # -*- coding: utf-8 -*-
  """Application configuration."""
  import os
  
  
  class Config(object):
      """Base configuration."""
  
      APP_DIR = os.path.abspath(os.path.dirname(__file__))  # This directory
      PROJECT_ROOT = os.path.abspath(os.path.join(APP_DIR, os.pardir))
      SQLALCHEMY_TRACK_MODIFICATIONS = False
  
      SQLALCHEMY_DATABASE_URI = 'sqlite:////workspaces/fm_frontend/fm_database.db'
  
  class ProdConfig(Config):
      """Production configuration."""
  
      ENV = 'prod'
      DEBUG = False
  
  
  class DevConfig(Config):
      """Development configuration."""
  
      ENV = 'dev'
      DEBUG = True
  
  
  class TestConfig(Config):
      """Test configuration."""
  
      TESTING = True
      DEBUG = True
      SQLALCHEMY_DATABASE_URI = 'sqlite:///:memory:'
  
  
  def get_config():
  
      environment = os.environ.get("FD_DEVICE_CONFIG", default='dev')
  
      if environment == 'dev':
          return DevConfig
      elif environment == 'prod':
          return ProdConfig
      elif environment == 'test':
          return TestConfig
      else:
          return DevConfig
  
new_contents: # -*- coding: utf-8 -*-
  """Application configuration."""
  import os
  
  
  class Config(object):
      """Base configuration."""
  
      APP_DIR = os.path.abspath(os.path.dirname(__file__))  # This directory
      PROJECT_ROOT = os.path.abspath(os.path.join(APP_DIR, os.pardir))
      SQLALCHEMY_TRACK_MODIFICATIONS = False
  
      SQLALCHEMY_DATABASE_URI = 'postgresql://fm:farm_monitor@db/farm_monitor.db'
  
  class ProdConfig(Config):
      """Production configuration."""
  
      ENV = 'prod'
      DEBUG = False
  
  
  class DevConfig(Config):
      """Development configuration."""
  
      ENV = 'dev'
      DEBUG = True
  
  
  class TestConfig(Config):
      """Test configuration."""
  
      TESTING = True
      DEBUG = True
      SQLALCHEMY_DATABASE_URI = 'sqlite:///:memory:'
  
  
  def get_config():
  
      environment = os.environ.get("FD_DEVICE_CONFIG", default='dev')
  
      if environment == 'dev':
          return DevConfig
      elif environment == 'prod':
          return ProdConfig
      elif environment == 'test':
          return TestConfig
      else:
          return DevConfig
  
subject: update database path