Tag: heroku

如何在运行`heroku local`时获得更多关于错误的细节

当我运行heroku local来testing我的工作进程时,我得到这个: forego | starting worker.1 on port 5000 worker.1 | /myproject/source-file.js:28 # in red worker.1 | ad (module.js:343:32) # in red 最后两行显示为红色,表示出现错误。 但是堆栈跟踪和错误消息是可见的。 重要的是我做heroku local而不是node source-file.js是因为我有一个名为.env的本地环境文件, .env的密钥是本地进程需要消耗的,我不知道如何将其馈送到node 。 如何扩展这些红色信息以找出失败的原因?

heroku git仓库的URL是什么?

我是Heroku新手。 最近,我用Heroku git创build了一个NodeJS应用程序,并将其部署在Heroku上。 我用下面的命令从Heroku git克隆我的本地计算机的存储库。 heroku git:clone -a {app_name} 我怎么能够浏览Heroku git上的仓库而不是本地的,比如GitHub?

节点JS Heroku不能GET /

我的Procfile web: node web.js 我的package.json { "name": "tattoohipfront", "private": true, "devDependencies": { "autoprefixer-core": "^5.2.1", "grunt": "^0.4.5", "grunt-angular-templates": "^0.5.7", "grunt-concurrent": "^1.0.0", "grunt-contrib-clean": "^0.6.0", "grunt-contrib-compass": "^1.0.0", "grunt-contrib-concat": "^0.5.0", "grunt-contrib-connect": "^0.9.0", "grunt-contrib-copy": "^0.7.0", "grunt-contrib-cssmin": "^0.12.0", "grunt-contrib-htmlmin": "^0.4.0", "grunt-contrib-imagemin": "^1.0.0", "grunt-contrib-jshint": "^0.11.0", "grunt-contrib-uglify": "^0.7.0", "grunt-contrib-watch": "^0.6.1", "grunt-filerev": "^2.1.2", "grunt-google-cdn": "^0.4.3", "grunt-jscs": "^1.8.0", "grunt-newer": "^1.1.0", "grunt-ng-annotate": "^0.9.2", "grunt-postcss": "^0.5.5", "grunt-svgmin": […]

Heroku – NodeJS无法将date转换为UTC

我需要在我的本地时间创build一个date,并将其转换为UTC保存在数据库中。 我在我的本地环境和Heorku有下面的代码: // node dateTest.js var moment = require('moment-timezone'); var timeZone = 'Pacific/Auckland'; var date = moment('20160101235959', 'YYYYMMDDHHmmss').tz(timeZone); var UTCdate = date.utc().toISOString(); console.log(UTCdate); 当我在本地运行时,我得到: 2016-01-01T10:59:59.000Z UTC时间是正确的。 但是当我在Heorku实例上运行时,我得到: 2016-01-01T23:59:59.000Z 最后是Z字面的date。 为什么会这样呢? 我无法弄清楚。 🙁 NodeJS v5.1.0

部署nodeJS到Heroku内部错误

我正在尝试将NodeJS应用上传到Heroku。 一切都安装好,当我运行 heroku local 然后在本地主机上按预期工作。 但是当我跑步 heroku ps:scale web=1 heroku open 浏览器打开,它正在加载页面2-3分钟,甚至更多,然后我收到应用程序错误。 我是networking发展的新手,所以任何想法都会有所帮助。 谢谢!

Heroku Stormpath Unresponsive注册页面

我在这里跟着heroku指南在我的angular度网站上使用express.js来configurationstormpathauthentication。 我成功地能够导航到我的网站根目录下的/ login和/ register页面。 但是,当我尝试注册时,我总是以没有创build的用户和我的页面看起来像下面的图像。

node-java错误:libjvm.so:无法打开共享对象文件:没有这样的文件或目录

我在下面的节点插件中得到一个错误,并打开一个问题:插件是在这里: https : //github.com/joeferner/node-java问题在这里: https : //github.com/joeferner/node-java /问题/ 306 对于使用rStudio的开发人员,我看到了类似的问题,解决了这个问题: libjvm.so:无法打开共享目标文件:没有这样的文件或目录 当我启动我的节点应用程序到heroku时,我有一个类似的错误: return process.dlopen(module, path._makeLong(filename)); ^ Error: libjvm.so: cannot open shared object file: No such file or directory at Error (native) at Object.Module._extensions..node (module.js:440:18) at Module.load (module.js:357:32) at Function.Module._load (module.js:314:12) at Module.require (module.js:367:17) at require (internal/module.js:16:19) at Object.<anonymous> (/app/node_modules/java/lib/nodeJavaBridge.js:31:16) at Module._compile (module.js:413:34) at Object.Module._extensions..js (module.js:422:10) […]

Heroku上的Nightmare.JS导致超时

我正在build立一个网站,当人们将他们的凭据放入URL的请求部分的网站中时,它会将其login到该网站并发回有关其帐户的数据。 在本地testing这个代码不会产生错误,而且发生得相当快 我不确定是什么原因导致它在服务器上超时而不是在本地。 这是来自heroku logs的日志文件 2016-05-27T05:03:02.884921+00:00 heroku[slug-compiler]: Slug compilation finished 2016-05-27T05:03:02.884910+00:00 heroku[slug-compiler]: Slug compilation started 2016-05-27T05:03:02.853598+00:00 heroku[web.1]: Restarting 2016-05-27T05:03:02.854287+00:00 heroku[web.1]: State changed from up to starting 2016-05-27T05:03:05.766040+00:00 heroku[web.1]: Stopping all processes with SIGTERM 2016-05-27T05:03:08.021294+00:00 heroku[web.1]: Starting process with command `node server.js` 2016-05-27T05:03:10.308664+00:00 app[web.1]: Node app is running on port 54574 2016-05-27T05:03:11.710569+00:00 heroku[web.1]: State changed from […]

Hubot合stream综合

我用Heroku的适配器在Heroku中运行了一个Hubot实例,并且一切正常。 但是在安装脚本之后尝试searchconfluence时出现错误。 我能够执行从我的松弛通道合stream帮助命令,并返回与帮助function,但是当我执行hubotsearch它回来了以下 错误:错误:getaddrinfo ENOTFOUND 我相信这是一个DNS错误,我已经检查了,所有我的合stream细节是正确的,据我所知,我使用我的凭据,我login到合stream,所以我知道他们是正确的,我有主机设置为我们用来访问它的合stream云地址。 我对此感到不知所措

gulpbuild立输出不在Heroku slug

我有一个在本地工作的超级简单的gulpfile: const gulp = require('gulp'); gulp.task('build:css', function() { return gulp.src('./node_modules/bootstrap/dist/css/*') .pipe(gulp.dest('./build')); }); gulp.task('build:js', function() { return gulp.src('./node_modules/bootstrap/dist/js/*') .pipe(gulp.dest('./build')); }); gulp.task('build', [ 'build:css', 'build:js' ]); gulp.task('default', [ 'build' ]); 它运行良好,并将文件复制到“构build”子文件夹。 事实上,它也运行在git push heroku master (它是package.json的一个postinstall脚本): remote: > gulp build remote: remote: [06:57:45] Using gulpfile /tmp/build_212ea9c2c3fab185469156431b6c1509/coming-soon/gulpfile.js remote: [06:57:45] Starting 'build:css'… remote: [06:57:45] Starting 'build:js'… remote: [06:57:45] Finished […]