heroku

Heroku can't find package.json during build although I have it

99封情书 提交于 2021-02-07 05:49:06
问题 When I push my node app to heroku master I get this log remote: Building source: remote: remote: -----> App not compatible with buildpack: https://codon- buildpacks.s3.amazonaws.com/buildpacks/heroku/nodejs.tgz remote: Node.js: package.json not found in application root I can't find the reason why this would happen as I clearly have in my root directory. I checked using git ls-files and it appears. Is it possible that my application root is not the same as my repository root? How would one

How to stop a heroku server?

一个人想着一个人 提交于 2021-02-07 03:22:33
问题 I have a staging server hosted on heroku, I just want to bring it down, but not destroy the app. How can I do it? Do I have any command like 'heroku stop' like 'heroku restart' for restarting? OR Is there a way to automate the server to turn off itself when it exceeds the 750 hr free usage? Actually I don't want the server so I am trying to stop it, or leave it for the free hours. 回答1: You can scale individual non-web processes down to zero quite happily: $ heroku ps:scale worker=0 $ heroku

How to stop a heroku server?

 ̄綄美尐妖づ 提交于 2021-02-07 03:20:29
问题 I have a staging server hosted on heroku, I just want to bring it down, but not destroy the app. How can I do it? Do I have any command like 'heroku stop' like 'heroku restart' for restarting? OR Is there a way to automate the server to turn off itself when it exceeds the 750 hr free usage? Actually I don't want the server so I am trying to stop it, or leave it for the free hours. 回答1: You can scale individual non-web processes down to zero quite happily: $ heroku ps:scale worker=0 $ heroku

Heroku: How to deploy a node app with client and server running on different ports?

寵の児 提交于 2021-02-07 03:00:54
问题 I have a nodejs API as server and React/Redux app as client located in one git project: https://github.com/lafisrap/fcc_nightlife.git I want to deploy it on Heroku using the heroku cli. The scripts section in package.json is: "scripts": { "start-dev": "concurrently \"yarn run server\" \"yarn run client\"", "start": "yarn run server | yarn run client", "server": "babel-node server.js", "client": "node start-client.js", "lint": "eslint ." }, start-client.js: const args = [ 'start' ]; const opts

Nodemailer with Gmail service not working on heroku

耗尽温柔 提交于 2021-02-06 10:15:43
问题 I've got a basic email setup done for sending email using Nodemailer with AngularJS and NodeJS and I've got the project deployed on heroku. The emailing seems to be working just fine when I am running the app on heroku, but when I get it deployed to Heroku no emails are sent. For authenticaion I am using a gmail address and I also have a bcc to another gmail address. So from and bcc addresses are two different gmail addresses. The from address is same as the address used for authentication.

Nodemailer with Gmail service not working on heroku

☆樱花仙子☆ 提交于 2021-02-06 10:14:06
问题 I've got a basic email setup done for sending email using Nodemailer with AngularJS and NodeJS and I've got the project deployed on heroku. The emailing seems to be working just fine when I am running the app on heroku, but when I get it deployed to Heroku no emails are sent. For authenticaion I am using a gmail address and I also have a bcc to another gmail address. So from and bcc addresses are two different gmail addresses. The from address is same as the address used for authentication.

Spring boot + angular 2 Heroku deployment

橙三吉。 提交于 2021-02-06 09:31:09
问题 I have a big issue. I'm trying to deploy Spring Boot + Angular 2 web app on heroku but don't know how to do it. I tried several things including: Making a .war file and deploying it to heroku (source here) Deploying project as standard java application (source here) but none of these worked. The first attempt didn't work because I constatly got 404 not found, and the second one didn't work due to, I think, some jar file wasn't found in the location which was described in the Procfile. Can

Reading, writing and storing JSON with Node on Heroku

会有一股神秘感。 提交于 2021-02-06 08:44:17
问题 I am building an App based on Node.js running on Heroku. The app uses a JSON file which at the moment is being pushed with the rest of the app, and we are reading and writing to it like so: var channelsList = require("./JSON/channels.json"); ... fs.writeFile("JSON/channels.json", JSON.stringify(channelsList), onCleaned); This has worked for now for the prototype, but I know that we need to use a data store or the changes won't persist when Dyno's sleep or I push changes. I have read that

Sinatra and Grape API together?

五迷三道 提交于 2021-02-05 20:16:32
问题 I've been reading around and I found this micro-framework called Grape for ruby. I am currently using Sinatra to handle the web interface but I would also like to implement Grape to handle the API aspect of the app. I can't find any helpful suggestions to this topic. The grape documentation says "Grape is a REST-like API micro-framework for Ruby. It's designed to run on Rack or complement existing web application frameworks such as Rails and Sinatra by providing a simple DSL to easily develop

Sinatra and Grape API together?

≡放荡痞女 提交于 2021-02-05 20:11:40
问题 I've been reading around and I found this micro-framework called Grape for ruby. I am currently using Sinatra to handle the web interface but I would also like to implement Grape to handle the API aspect of the app. I can't find any helpful suggestions to this topic. The grape documentation says "Grape is a REST-like API micro-framework for Ruby. It's designed to run on Rack or complement existing web application frameworks such as Rails and Sinatra by providing a simple DSL to easily develop