heroku

Deploy the backend and frontend on the same Heroku app/dyno

◇◆丶佛笑我妖孽 提交于 2020-06-09 16:46:31
问题 At the root of my project, I have a frontend and backend folder. Both folders contain a package.json that list their dependencies. How do I tell Heroku to run npm install on both folders when deploying the application? It seems like Heroku expects to have a single package.json file by default. Do I have to do something with a Procfile? The Heroku documentation doesn't seem to tell much about my specific question. Thanks for the help! 回答1: Seems that you can put a package.json file on the root

Upgrade hobby-dev to hobby-basic on Heroku

浪尽此生 提交于 2020-06-09 08:26:18
问题 I'm still getting my head wrapped around Heroku's plans. But I know I'm going to have around 3M rows in the db so I need to upgrade from hobby-dev to hobby-basic. However, I can't find any documentation or help about this level of upgrade. Only docs to go from Hobby to Standard. Do I need to create a new PG Add-On and then wipe out my hobby-dev db? 回答1: This answer assumes that you're using Heroku CLI. Any instance of "YOUR_APP_NAME" in a command should be replaced by the application name of

Error with 'Git push heroku master' command

浪子不回头ぞ 提交于 2020-06-09 08:23:07
问题 I am trying to update the code from my application to my repository and an error appears. How can I fix it? C:\Sites\ecozap>git push heroku master Enter passphrase for key '/c/Users/Diseño2/.ssh/id_rsa': Fetching repository, done. To git@heroku.com:ecozap.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'git@heroku.com:ecozap.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Merge the remote

500 error when Debug=False with Heroku and Django

别说谁变了你拦得住时间么 提交于 2020-06-09 04:36:45
问题 I am getting a funny 500 error when I switch to Debug=False in my Heroku app when I deploy. I have set Debug=True when I deploy just to try it out and it works perfectly - so the issue is only when Debug is set to False. I'm not sure where to start here. Some searching has led me to believe it's whitenoise causing the issue but it's not clear. The command: Output from heroku logs --source app 2018-09-13T12:29:53.137785+00:00 app[web.1]: 10.45.76.149 - - [13/Sep/2018:12:29:53 +0000] "GET /

'Couldn't find that process type' heroku node deployment

泄露秘密 提交于 2020-06-08 17:10:51
问题 I'm getting 'Couldn't find that process type' when I try to do $ heroku ps:scale web=1 . I looked at some other solutions that suggested to make sure my Procfile is spelled correctly and pushed correctly, which is. This is the exact error I get: heroku ps:scale web=1 Scaling dynos... ! ▸ Couldn't find that process type. Error: ENOENT: no such file or directory, open '/Users/XXXXXX/.cache/heroku/error.log' at Object.fs.openSync (fs.js:584:18) at Object.fs.writeFileSync (fs.js:1316:33) at

'Couldn't find that process type' heroku node deployment

|▌冷眼眸甩不掉的悲伤 提交于 2020-06-08 17:07:09
问题 I'm getting 'Couldn't find that process type' when I try to do $ heroku ps:scale web=1 . I looked at some other solutions that suggested to make sure my Procfile is spelled correctly and pushed correctly, which is. This is the exact error I get: heroku ps:scale web=1 Scaling dynos... ! ▸ Couldn't find that process type. Error: ENOENT: no such file or directory, open '/Users/XXXXXX/.cache/heroku/error.log' at Object.fs.openSync (fs.js:584:18) at Object.fs.writeFileSync (fs.js:1316:33) at

Firebase Auth Are my variables secure/safe?

。_饼干妹妹 提交于 2020-06-01 07:41:26
问题 I am currently using heroku to store my environmental variables for my firebase authentication initialisation. I am using my server to get the environmental variables and send it to the client using socket.io. Below is what I mean. 1) Example of sending environmental variable to client from server: socket.emit('value', process.env.apiKey); 2) storing it as data[0] in the client: socket.on('value', function(data) { firebase.initializeApp({ apiKey: data[0], }); }) Is this safe? Can someone from

Firebase Auth Are my variables secure/safe?

拟墨画扇 提交于 2020-06-01 07:41:08
问题 I am currently using heroku to store my environmental variables for my firebase authentication initialisation. I am using my server to get the environmental variables and send it to the client using socket.io. Below is what I mean. 1) Example of sending environmental variable to client from server: socket.emit('value', process.env.apiKey); 2) storing it as data[0] in the client: socket.on('value', function(data) { firebase.initializeApp({ apiKey: data[0], }); }) Is this safe? Can someone from

Memory quota exceeded after angular bitbucket heroku deployment

被刻印的时光 ゝ 提交于 2020-06-01 06:44:05
问题 I am trying to make a Bitbucket pipeline which will deploy the app to the Heroku. It deploys but on Heroku I am getting 2019-04-01T19:47:11.305401+00:00 app[web.1]: [34mℹ[39m [90m「wdm」[39m: Compiled successfully. 2019-04-01T19:47:18.311170+00:00 heroku[web.1]: Process running mem=571M(111.6%) 2019-04-01T19:47:18.311170+00:00 heroku[web.1]: Error R14 (Memory quota exceeded) 2019-04-01T19:47:40.049088+00:00 heroku[web.1]: Process running mem=558M(109.0%) 2019-04-01T19:47:40.049160+00:00 heroku

Error while pushing to Heroku: Cannot find module 'node-linux-x64/package.json'

左心房为你撑大大i 提交于 2020-06-01 03:17:38
问题 When deploying a fullstack Javascript app to Heroku, I receive the following error: Error: Cannot find module 'node-linux-x64/package.json' There's also a syntax error, but I don't believe that's the cause. I'm a Mac user, so I'm unsure of what's going on. I've checked for the syntax error, but found nothing. I also tried uninstalling and reinstalling Node, etc... Output: remote: -----> Installing dependencies remote: Prebuild detected (node_modules already exists) remote: Rebuilding any