0

對不起,如果我的問題聽起來很愚蠢,但我已經在這方面打擊了我的頭腦很長一段時間,顯然這是我第一次部署,我是一個初學者。想要將我的應用程序部署到我的域,在eb部署成功後該怎麼辦?

我按照本教程(http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_Ruby_rails.html)將我的rails應用程序部署到彈性beanstalk。一切順利,eb deploy成功,eb open也在終端(w3m)中打開我的應用程序。

但我想接下來做什麼?我的意思是

  1. 我想對Elastic Beanstalk控制檯上的「上傳和部署」按鈕執行任何操作?目前在示例應用程序。

我已經試過aws elasticbeanstalk create-application-version --application-name my-application --version-label v2 --source-bundle S3Bucket=(bucket name),S3Key=(zip file)

但作爲回報,我得到A client error (InvalidParameterCombination) occurred when calling the CreateApplicationVersion operation: Unable to download from S3 location (Bucket: name of bucket Key: name of zip file). Reason: Moved Permanently

  • 什麼是我在託管區域在路線53做什麼?我在彈性beanstalk控制檯中輸入了類型:CNAME和值作爲url,顯然去我的域名爲'恭喜你的第一個AWS Elastic Beanstalk Ruby應用程序現在在AWS雲中的專用環境中運行',因爲'上傳和部署'正在示例應用程序中。
  • OR是我的思維過程都錯了嗎?希望有人能啓發我,告訴我該怎麼做。我只需要將我的網絡應用程序部署到我自己的域。提前致謝。

    我不知道這是否是有用的,該消息後eb deploy

    Creating application version archive "(name of app)". 
    Uploading (name of app).zip to S3. This may take a while. 
    Upload Complete. 
    INFO: Environment update is starting.        
    INFO: Deploying new version to instance(s).       
    INFO: Environment health has transitioned from Ok to Info. Command is executing on all instances. 
    INFO: New application version was deployed to running EC2 instances. 
    INFO: Environment update completed successfully. 
    

    回答

    1

    好吧,我覺得愚蠢。

    我只需要輸入eb status --verbose到終端,複製並粘貼給路由53託管區域的CNAME。

    相關問題