首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在Heroku Dyno上部署Sonarqube服务器

如何在Heroku Dyno上部署Sonarqube服务器
EN

Stack Overflow用户
提问于 2019-06-28 11:17:29
回答 1查看 2.5K关注 0票数 1

我必须在Heroku上部署一个SonarQube服务器。

为此,我尝试了以下几项:

  1. 从SonarQube社区版下载https://www.sonarqube.org/downloads/
  2. 然后我打开文件夹,进入/sonarqube-7.8/文件夹。
  3. 然后,我创建了包含以下内容的Procfile:

网站: chmod u+x bin/linux-x86-64/sonar.sh &/bin/linux-x86-64/sonar.sh

  1. 然后,我创建了具有以下内容的system.properties文件:

java.runtime.version=1.8

  1. 然后运行以下命令,在Heroku上签入SonarQube服务器,并运行服务器:

加在一起。git提交-m“初始提交”git推heroku主

在运行上述命令之后,git bash控制台显示如下:

代码语言:javascript
复制
Enumerating objects: 6, done.
Counting objects: 100% (6/6), done.
Delta compression using up to 4 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (4/4), 391 bytes | 39.00 KiB/s, done.
Total 4 (delta 1), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> SonarQubeFramework app detected
remote: -----> Create setupSonar.sh
remote: -----> Discovering process types
remote:        Procfile declares types -> web
remote:
remote: -----> Compressing...
remote:        Done: 195.5M
remote: -----> Launching...
remote:        Released v8
remote:        https://<app_name>.herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy... done.
To https://git.heroku.com/<app_name>.git
   cad2f14..55d4bcd  master -> master

我从heroku上得到了下面的日志

代码语言:javascript
复制
2019-06-28T10:54:19.321815+00:00 heroku[web.1]: Starting process with command `chmod u+x bin/linux-x86-64/sonar.sh && ./bin/linux-x86-64/sonar.sh`
2019-06-28T10:54:21.360549+00:00 heroku[web.1]: Process exited with status 1
2019-06-28T10:54:21.380868+00:00 heroku[web.1]: State changed from starting to crashed
2019-06-28T10:54:21.313195+00:00 app[web.1]: Usage: ./bin/linux-x86-64/sonar.sh { console | start | stop | force-stop | restart | status | dump }

有人能帮我在Heroku上部署SonarQube服务器吗??

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-07-16 07:52:52

我能够在Heroku上部署SonarQube服务器:下面是按相同顺序执行的命令:

代码语言:javascript
复制
heroku create <appName>
heroku addons:create heroku-postgresql:hobby-dev -a <appName>
heroku buildpacks:set https://github.com/NayaraCaetano/heroku-buildpack-sonarqube.git -a <appName>
mkdir <appName> && cd <appName>
touch README
git init
heroku git:remote -a <appName>
git add .
git commit -am "initial commit"
git push heroku master
heroku dyno:resize performance-m -a <appName>

注意:由于内存限制,您必须在Heroku上使用性能-m dyno (这不是免费的)。此外,免费版本的Postgres将在1或2扫描耗尽,所以你必须根据你的需要升级它。

票数 6
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56805948

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档