cluster_management/launch_script.py
def do_create_single_server_ami(ip_address, key_filename):
    """
    Set up a beiwe-backend deployment on a single server suitable for turning into an AMI
    :param ip_address: IP address of the server you're setting up as an AMI
    :param key_filename: Full filepath of the key that lets you SSH into that server
    """
    configure_fabric(None, ip_address, key_filename=key_filename)
    push_home_directory_files()
    apt_installs(single_server_ami=True)
    load_git_repo()
    setup_python()
    push_beiwe_configuration(None, single_server_ami=True)
    configure_local_postgres()
    manage_script_filepath = path_join(REMOTE_HOME_DIR, "beiwe-backend/manage.py")
    run('python3 {filename} migrate'.format(filename=manage_script_filepath))
    setup_single_server_ami_cron()
    configure_apache()
    remove_unneeded_ssh_keys()

    Set up a beiwe-backend deployment on a single server suitable for turning into an AMI
    :param ip_address: IP address of the server you're setting up as an AMI
    :param key_filename: Full filepath of the key that lets you SSH into that server
    
Set up a beiwe-backend deployment on a single server suitable for turning into an AMI
Set up a beiwe - backend deployment on a single server suitable for turning into an AMI
def do_create_single_server_ami(ip_address, key_filename):
    configure_fabric(None, ip_address, key_filename=key_filename)
    push_home_directory_files()
    apt_installs(single_server_ami=True)
    load_git_repo()
    setup_python()
    push_beiwe_configuration(None, single_server_ami=True)
    configure_local_postgres()
    manage_script_filepath = path_join(REMOTE_HOME_DIR, "beiwe-backend/manage.py")
    run('python3 {filename} migrate'.format(filename=manage_script_filepath))
    setup_single_server_ami_cron()
    configure_apache()
    remove_unneeded_ssh_keys()
def do_create_single_server_ami ( ip_address , key_filename ) : configure_fabric ( None , ip_address , key_filename = key_filename ) push_home_directory_files ( ) apt_installs ( single_server_ami = True ) load_git_repo ( ) setup_python ( ) push_beiwe_configuration ( None , single_server_ami = True ) configure_local_postgres ( ) manage_script_filepath = path_join ( REMOTE_HOME_DIR , "beiwe-backend/manage.py" ) run ( 'python3 {filename} migrate' . format ( filename = manage_script_filepath ) ) setup_single_server_ami_cron ( ) configure_apache ( ) remove_unneeded_ssh_keys ( )
Set up a beiwe-backend deployment on a single server suitable for turning into an AMI
Set up a beiwe - backend deployment on a single server suitable for turning into an AMI
"""
    Set up a beiwe-backend deployment on a single server suitable for turning into an AMI
    :param ip_address: IP address of the server you're setting up as an AMI
    :param key_filename: Full filepath of the key that lets you SSH into that server
    """
ip_address
IP address of the server you're setting up as an AMI
IP address of the server you ' re setting up as an AMI
key_filename
Full filepath of the key that lets you SSH into that server
Full filepath of the key that lets you SSH into that server