AppController/djinn.rb
# Start the AppDashboard web service which allows users to login, upload
# and remove apps, and view the status of the AppScale deployment. Other
# nodes will need to delete the old source since we regenerate each
# 'up'.
Start the AppDashboard web service which allows users to login, upload
and remove apps, and view the status of the AppScale deployment. Other
nodes will need to delete the old source since we regenerate each
'up'.
Start the AppDashboard web service which allows users to login upload and remove apps and view the status of the AppScale deployment . Other nodes will need to delete the old source since we regenerate each ' up ' .
def prep_app_dashboard()
    @state = "Preparing AppDashboard"
    Djinn.log_info("Preparing AppDashboard")
    my_public = my_node.public_ip
    my_private = my_node.private_ip
    result = reserve_app_id(APPSCALE_USER, AppDashboard::APP_NAME,
      AppDashboard::APP_LANGUAGE, @@secret)
    Djinn.log_debug("reserve_app_id for dashboard returned: #{result}.")
    AppDashboard.start(my_public, my_private,
        PERSISTENT_MOUNT_POINT, @@secret)
    APPS_LOCK.synchronize {
      if @app_info_map[AppDashboard::APP_NAME].nil?
        @app_info_map[AppDashboard::APP_NAME] = {
          'nginx' => AppDashboard::LISTEN_PORT,
          'nginx_https' => AppDashboard::LISTEN_SSL_PORT,
          'haproxy' => AppDashboard::PROXY_PORT,
          'appengine' => [],
          'language' => AppDashboard::APP_LANGUAGE
        }
      end
      @app_names << AppDashboard::APP_NAME
    }
  end
def prep_app_dashboard ( ) @state = "Preparing AppDashboard" Djinn . log_info ( "Preparing AppDashboard" ) my_public = my_node . public_ip my_private = my_node . private_ip result = reserve_app_id ( APPSCALE_USER , AppDashboard :: APP_NAME , AppDashboard :: APP_LANGUAGE , @@secret ) Djinn . log_debug ( "reserve_app_id for dashboard returned: #{result}." ) AppDashboard . start ( my_public , my_private , PERSISTENT_MOUNT_POINT , @@secret ) APPS_LOCK . synchronize { if @app_info_map [ AppDashboard :: APP_NAME ] . nil? @app_info_map [ AppDashboard :: APP_NAME ] = { 'nginx' => AppDashboard :: LISTEN_PORT , 'nginx_https' => AppDashboard :: LISTEN_SSL_PORT , 'haproxy' => AppDashboard :: PROXY_PORT , 'appengine' => [ ] , 'language' => AppDashboard :: APP_LANGUAGE } end @app_names << AppDashboard :: APP_NAME } end
Start the AppDashboard web service which allows users to login, upload
and remove apps, and view the status of the AppScale deployment.
Start the AppDashboard web service which allows users to login upload and remove apps and view the status of the AppScale deployment .
# Reserve dashboard app ID. # Create and 'upload' the application. # Assign the specific ports to it.