2017年10月23日星期一

[新版]基于Heroku+Snova搭建代理 | 在Heroku上部署Snova的WAR服务

方式:用Heroku-CLI-Deploy插件部署

需要的环境:Java JDK / Heroku-CLI / Ruby / Git / Heroku-CLI-Deploy插件

$ heroku login
E-mail:shareducks@gmail.com
Password:598860675xj

$ heroku-cli:Updating to x.xx.xx  //自动下载/更新Heroku-CLI
$ heroku plugins:install heroku-cli-deploy  //安装Heroku-CLI-Deloy插件
$ heroku create <app name>  //创建heroku app
Creating gsnovac4... done
https://gsnovago.herokuapp.com/ | https://git.heroku.com/gsnovac4.git


$ heroku war:deploy <path_to_war_file> --app <app_name>
heroku deploy:war <path_to_war_file>  //如果在文件目录里

C:\Users\JonasXiao>heroku plugins:install heroku-cli-deploy
Installing plugin heroku-cli-deploy... done

C:\Users\JonasXiao>heroku war:deploy F:\100\c.war --app gsnovac4
Uploading c.war
-----> Packaging application...
       - app: gsnovac4
       - including: webapp-runner.jar
       - including: c.war
-----> Creating build...
       - file: slug.tgz
       - size: 7MB
-----> Uploading build...
       - success
-----> Deploying...
remote:
remote: -----> heroku-deploy app detected
remote: -----> Installing OpenJDK 1.8... done
remote: -----> Discovering process types
remote:        Procfile declares types -> web
remote:
remote: -----> Compressing...
remote:        Done: 56.1M
remote: -----> Launching...
remote:        Released v3
remote:        https://gsnovac4.herokuapp.com/ deployed to Heroku
remote:
-----> Done


没有评论:

发表评论