Newer
Older
cortex-hub / scripts / deploy_to_prod.exp
#!/usr/bin/expect -f
set timeout 600
set password "a6163484a"
set env(GITBUCKET_TOKEN) "58ff61c1a0ede2fb4a984f8d5be97d5ae1d8d855"
set env(DEPLOYMENT_SNIPPET_ID) "de6bc89a046776eb3c87544d2c06b39f"
set env(REMOTE_PASS) "a6163484a"
set env(PATH) "/opt/homebrew/bin:$env(PATH)"
set env(LOCAL_APP_DIR) "/Users/axieyangb/Project/CortexAI"
spawn bash scripts/remote_deploy.sh --fast
expect {
    "password:" {
        send "$password\r"
        exp_continue
    }
    "Syncing local files to production" {
        exp_continue
    }
    "Overwriting production project files" {
        exp_continue
    }
    "Deploying on production server" {
        exp_continue
    }
    eof
}
catch wait result
exit [lindex $result 3]