请原谅我,如果我的问题听起来很愚蠢,但是我已经开了很长时间了,这显然是我第一次部署,而且我是初学者。
我已经按照本教程(http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_Ruby_rails.html)将我的rails应用程序部署到弹性beanstalk。一切都很成功,eb deploy
成功,eb open
也在终端(w3m)打开我的应用程序。
但我接下来要做什么?我的意思是
我已尝试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
或者我的思维过程都错了吗?希望有人可以启发我并告诉我该怎么做。我只需要将我的网络应用程序部署到我自己的域名。提前谢谢。
我不知道这是否有用,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.
答案 0 :(得分:1)
好的,我感到愚蠢。
我只需要在终端中键入eb status --verbose
,将CNAME复制并粘贴到Route 53托管区域。