我必须在Heroku Web Dyno上部署SonarQube服务器。
为此,我尝试了以下项目:
从以下位置下载了SonarQube社区版 https://www.sonarqube.org/downloads/
然后我解压缩该文件夹并进入/sonarqube-7.8/文件夹
网站:chmod u + x bin / linux-x86-64 / sonar.sh && ./bin/linux-x86-64/sonar.sh
java.runtime.version=1.8
git init git add. git commit -m "initial commit" git push heroku master
运行上述命令后,git bash控制台显示以下内容:
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上获得以下日志
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 Cloud上部署SonarQube Server吗?
答案 0 :(得分:0)
我能够在Heroku Cloud上部署SonarQube服务器: 以下是按相同顺序执行的命令:
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上使用 performance-m dyno(非免费)。还免费版 Postgres将在1或2次扫描后筋疲力尽,因此您必须 根据需要对其进行升级。