Questions tagged [heroku]

Heroku stands as an exceptional cloud platform catering to a wide range of programming languages such as Ruby, Node.js, Python, Scala, Clojure, Go, PHP, and JVM-based applications. What sets Heroku apart is its versatile deployment strategies including Git-based approach, direct integration with GitHub, and comprehensive API capabilities. Furthermore, the platform offers an extensive selection of add-ons for enhanced services, all supplemented by a robust API.

Heroku failing to set cross-site cookie through the Set-Cookie Response Header

Despite working fine locally, I am facing issues with setting cookies on Heroku when making cross-site calls. This problem seems to be occurring specifically in Chrome and Safari, the two browsers I have tested so far. It could be due to either the cross-s ...

Is there a way to access environment variables within npm or package.json configuration?

I'm working on creating a package.json file to ensure that when my NodeJS app is deployed on Heroku, it will execute the scripts.postinstall step using an environment variable. Here is an example: ... "scripts": { "postinstall": "command $ENV_VAR"} ...

Rest parameter ...args is not supported by Heroku platform

When interacting with Heroku, an error message SyntaxError: Unexpected token ... appears. What modifications should be made to this function for compatibility with Heroku? authenticate(...args) { var authRequest = {}; authRequest[ ...

Deploying an Angular application on Heroku platform

Recently, I followed this helpful guide to deploy my app: Angular CLI Deployment: Host Your Angular 2 App on Heroku However, today when attempting to deploy another app, the build was successful but the ng build did not run or execute as expected. D ...

What are the steps to fix errors when deploying a MEAN stack application on Heroku?

Upon building my Angular app with a Node.js API and deploying it on Heroku, I encountered an error. Despite this, the app runs smoothly with no errors when tested on my local server. Below are the logs from Heroku: C:\Users\PC>heroku logs -a= ...

Heroku (Node application): What is the fate of temporary files on the platform?

My Node application, which is hosted on a free Heroku account, utilizes Amazon S3 to store files. I am currently using the s3fs module in conjunction with multiparty middleware to first temporarily store files before uploading them to S3. However, even af ...

What are the steps to successfully launch a Node.js / Express application with typescript on heroku?

I attempted to deploy my node.js / express server app on Heroku but encountered some issues. I followed the steps outlined in a blog post, which you can find here. Unfortunately, the deployment did not succeed. Below are snippets of the code from my serve ...

How to effectively execute AJAX requests on the server side using Node.js

I am currently in the process of developing a search engine that utilizes both Twitter and Wiki APIs on the server-side after receiving a search query from the client. Previously, when operating solely on the client-side, my AJAX request to the Wiki API lo ...

Issue with page refreshing not functioning on localhost in Rails and AngularJS collaboration

I recently encountered a strange issue while working on my Rails 4.2 + AngularJS 1.5 project. Whenever I attempt to refresh (F5) the main web-page, there's about a 9 out of 10 chance that the refresh doesn't happen correctly. In these cases, all I can see ...

Obtain free SSL when utilizing Heroku in combination with Cloudflare for secure

Exploring the possibility of obtaining free SSL on Heroku with the help of Cloudflare's innovative new Universal SSL For further insights, check out this informative article: It appears that Cloudflare now offers free SSL, opening doors to new oppor ...

Heroku, Express, React, and NodeJS - struggling with HTTPS inconsistency issue

I'm facing an issue with my express routes not working properly when deployed on Heroku. The odd thing is that the routes work fine when accessed via HTTP, but not via HTTPS. Interestingly, they do work on HTTPS with Internet Explorer and Microsoft Edge, b ...

I am experiencing an issue with my React app deployed on Heroku where it successfully loads the home page but fails

My react application performs perfectly when run locally and is successfully deployed on heroku. However, upon clicking any link from the home page to another page, a blank page with 'not found' message appears. No other error messages are displa ...

Scheduled Job unable to complete post request

(I am completely new to the world of JavaScript, node.js, and Heroku so I apologize in advance if my question is not very clear) I recently set up a Heroku node.js application with a scheduled task that should run every hour. The task does run as expecte ...

Struggling to link AWS S3 ReactApp with Heroku Node/Express API

I successfully deployed a react-app to AWS S3 and a node/express API on Heroku, but I am facing difficulties in connecting them together even with the cors configuration in the API or using proxy in the react-app. I have been unable to resolve this issue. ...

The object { production: boolean; } does not include the property 'firebase'

While attempting to deploy my Angular 4 app on both Firebase and Heroku for production, I encountered the following error: ERROR in /Users/.../... (57,49): Property 'firebase' does not exist on type '{ production: boolean; }'. This issue arises when ru ...

Heroku App Breaks Down - Fails to Render Static HTML Content (Express Server)

Despite my best efforts, I keep encountering this persistent error on Heroku whenever I attempt to serve a static HTML page with some basic JS, images, and CSS. I diligently followed all the advice from SO, made adjustments to index.js, restructured files, ...

issue with array .split() function not being executed correctly on Heroku platform

My Node/Express app deployed on Heroku is causing a discrepancy with the .split() array method. When running it locally versus on Heroku, the arrays produced are entirely different. The issue arises when trying to read a CSV file in the following code sni ...

The command 'foreman' is not valid in this context

I recently began my journey with Node.js on a Windows operating system. After successfully setting everything up on my localhost, I decided to explore using heroku for hosting my application. Following the steps in this particular tutorial worked smoothl ...

Why does Heroku keep saying it cannot locate the package.json file in my module every time I attempt to do a heroku push?

After creating my own npm package by forking react-coverflow, everything seemed to work perfectly when using it locally in my app with the command "npm install react-coverflow-mod" --save. I was able to run my app smoothly by selecting "run with debug (F5 ...

having difficulty connecting to an IP address from heroku

Trying to send a ping to an IP address has been successful while testing the application on localhost. getAsync('ping google.com').then(data => { res.send(data); }); When tested on localhost, the result is: Packets: Sent = 4 ...

What is the best way to deploy Next.js and Node.js on Heroku without utilizing npm run build for the client side?

Hello, I have a dilemma with my Next.js project. If I build it, the connection to the backend breaks, which is not ideal. When I try to launch on Heroku using npm run build, everything works fine except for the backend connectivity issue... Below is an ex ...

Execute the task immediately after receiving the JSON response

Whenever the mobile app requests specific data, I must execute a task. The user may not need the task completed immediately, but within the next 2 minutes. Being relatively new to Python and web development, I am unsure of how to achieve this. I prefer n ...

Guide for Deploying Firebase Function on Heroku for Google Assistant Integration

I have developed a straightforward function for Google Assistant (using Dialogflow) within a Firebase function with the following structure: functions/ node_module/ index.js package-lock.json package.json firebase.json I am looking t ...

Implementing Prerender.io using Node.js in a live environment

I've been exploring the option of integrating prerender into my Angular application, but I'm facing some challenges in figuring out how to implement it on production, especially on Heroku. Based on the information provided in the documentation, I can run ...

Leveraging environment variables within package.json

Working on an older application, I've encountered a challenge where the API endpoint URL varies depending on the system. Currently, my package.json file looks like this: "start": "cross-env API_ENDPOINT=http://localhost:5000/api/v1 react-scripts start" ...

Encountering Issue H12 While Deploying an Express JS Application on Heroku

I have developed an application using Node JS, and I've taken it as far as I can on my local machine. Now, I need to deploy it on Heroku. If you want to check out the main server.js file, you can find it here: http://pastebin.com/6VGk8ESz. To understand h ...

Oops! Looks like there was an error with the postinstall script in npm. The ELIFEC

Hey there, I'm currently in the process of deploying a npm/bower/gulp project to Heroku. Unfortunately, I'm encountering a very generic error both locally and on the Heroku platform. npm ERR! Darwin 14.1.0 npm ERR! argv "node" "/Users/admin/.nod ...

Facing an ERR_SSL_PROTOCOL_ERROR while working with Heroku, Node.js, Express, and SSL encryption

Lately, I activated SSL for my website hosted on Heroku, wildcodemonkey.com, but Chrome shows me the error "ERR_SSL_PROTOCOL_ERROR" whenever I try to access it. From what I've gathered, the SSL connection ends at Heroku's router, which then forw ...

Issue encountered during deployment of node.js app to Heroku - files appear to be structured correctly, but experiencing buildpack error?

Encountering an error while deploying a node.js app on Heroku, where the buildpack couldn't detect a node.js codebase as shown in the screenshot below. I have set the build pack and ensured that the package.json is at the root level along with the app.js ...

Utilizing Angular routes within a Node.js application deployed on Heroku

I've been working on deploying an AngularJS project to Heroku. The app functions perfectly fine locally and when using heroku local web. However, upon attempting to access it, I encounter the error TypeError: response.sendFile is not a function. Server.j ...

Is it possible to exclusively deploy the backend of my React Native app on Heroku?

I am currently developing a react native app with expo, using node.js and Express for the backend. My project structure consists of a frontend folder and a backend (server) folder within the root directory. Root | |Frontend |Various screens & assoc ...

I'm currently attempting to deploy an application to Heroku using Git Bash, but I am encountering difficulty in accessing the app on the Heroku platform

Having trouble deploying an app from git-bash to heroku, as I am unable to open the app on heroku. Every time I try to run the npm install command, I encounter an error. npm install Below is the error message that I receive: npm WARN EBADENGINE Unsupporte ...

There are no Vue.js updates reflected in Heroku when using Laravel

I've encountered an issue with Heroku (PaaS). I'm in the process of launching my first project using Laravel, and I'm consistently making changes. It's my understanding that every modification made during development needs to be pushed to Heroku via git fo ...

Error: An unexpected symbol '<' was encountered after the build process in Vue.js

I just finished deploying a MEVN stack application to heroku. While everything is functioning properly locally, I am encountering a blank page and the following errors in the console post-deployment: Uncaught SyntaxError: Unexpected token '<' ...

I would like to share tips on integrating React.js with a backend through React Hooks and the process of deploying the application on Heroku

Looking to integrate the React front-end framework with my backend express.js and EJS using React Hooks. I am familiar with using app.get() in Express for handling server requests, but unsure how to coordinate that with starting a React server on localh ...

Deploying a Node.js app on Heroku using a Mac has hit a roadblock - encountering the error message "sh: 1: nodemon: not found" along with "npm ERR! `nodemon fileName.js

Guide to Deploying on Heroku with Node.js using Mac Encountered Problem: Error message: State changed from starting to crashed && sh: 1: nodemon: not found && Failed at...start script && status 1...code=H10 After developing my ...

What causes the issue of Angular 9 routing breaking upon page refresh?

I have deployed my Angular 9 application on Heroku and everything is working perfectly. However, when I refresh the page or copy/paste a link, I get an error message saying "Cannot GET /XXX/XXX". Only the root link seems to work! Initially, I can navigate ...

Encountering a problem with deploying a sails.js application on Heroku due to an npm error related to the package "sailshq

Starting with the current setup on my development machine: Node version: 8.4.0 Npm: 5.3.0 (includes Node 8.4) Sails: ~0.12.13 Source control system: Github Deployment host: Heroku I followed this guide: (excluding the heroku git part, utilizing githu ...

Deploying the app on Heroku and setting up the SSH key for secure

Having trouble pushing code to the Heroku server with this command $ heroku login Enter your Heroku credentials. Email: <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d8b2b9abb3b7bab098b0b7acb5b9b1b4f6bbb7b5">[email pr ...

Do Heroku servers experience sluggish performance?

I've noticed that my Node.js website runs incredibly fast when I test it on localhost, but once deployed on Heroku, it slows down significantly. I'm curious if this same issue would arise if I were to host the site with Digital Ocean or another p ...

Is conditional requirement necessary for Express?

Currently, I am utilizing the reload package during development. This particular package is listed under devDependancies within my package.json file. Within my app.js, the following code snippet can be found: if (process.env.NODE_ENV !== 'production') { ...

The hosting service Heroku is currently having trouble recognizing the concurrent command within the "npm run start" script

This is an inquiry posted on Stack Overflow: My hosting provider, Heroku, does not seem to recognize the "concurrently" command in my "npm run start" script. I can successfully run this command locally using "heroku local web" but encounter log errors whe ...

Tips for maximizing the performance of my Heroku web application

As a beginner in web development, I am currently working on creating my own portfolio website. My website utilizes node, express, and Heroku to go live online. However, I am facing some challenges as the page does not scroll smoothly and the animations are ...

Encountered a Heroku Crash Error: The Heroku router reported an error with code H10, with the description being that the application has crashed while attempting to handle a GET request made to the "/favicon.ico

I've been struggling to get my nodejs app up and running on Heroku. Unfortunately, every time I try to launch it, it crashes with the error message below. Many people suggest that there might be some port configuration issues causing this problem, but I'm ...

Having trouble deploying Heroku with Node.js due to a "module not found" error?

I've hit a wall with my problem. Despite trying everything, I still can't successfully deploy my nodejs server on Heroku. It's puzzling because running the start script using the heroku run bash command works perfectly fine. However, when I ...

Guide on how to change a Next.js app deployed on Heroku to use HTTPS instead of HTTP?

I have a Next.js application deployed on Heroku. The app does not have a custom server, and accessing the site directly using the HTTPS URL works without any issues. However, I would like to set up a redirection from the HTTP URL to the HTTPS page for use ...

Encountering an issue stating: "[Vuetify] v-ripple can only be applied to block-level elements" while attempting to deploy on Heroku platform

Lately, I've been working on developing an app using Rails 6 with a mix of Vue and Vuetify for the front end. Everything runs smoothly on my local machine. However, as soon as I attempt to deploy it on Heroku, I encounter this error in the debug console: ...

The deployment of my Next.js app on Heroku was refused due to an incompatible Node version

Encountering issues while attempting to deploy my app on Heroku, I am faced with the following shortened errors: remote: -----> Creating runtime environment remote: remote: NPM_CONFIG_LOGLEVEL=error remote: NODE_VERBOSE=false remot ...

Encountering errors with ng build --prod in Angular 2, but no issues when running ng serve

After attempting to deploy my Angular 2 app to Heroku, I encountered a daunting list of errors when trying to build for production. Interestingly, the app runs smoothly without any issues or errors when using 'ng serve'. You can view the full li ...

When attempting to launch my application on Heroku, I consistently encountered the following error code: 'ERR_DLOPEN_FAILED'

As a new user on Heroku, I am currently working on building an app with react (Node.js). Even though Heroku confirms that my app has been successfully deployed, the app itself does not seem to be deployed despite showing a deploy success message: "Deploy ...

Encountering a 500 error when deploying a Flask app to Heroku stemming from issues with the create_app

After successfully running my app locally with "Flask run", I encountered an error when trying to deploy it on Heroku. The structure of my app is similar to the microblog flask tutorial with blueprints. Upon accessing the deployed website, I received the f ...

Building interactive chat "hubs" with Node, Express, Heroku, and Socket.io

As I've been working on my app for a while now, scalability issues have started to arise. With my limited experience in Node and Heroku, I'm reaching out for some guidance. Initially, I followed this tutorial to set up my node service, essentially creatin ...

Could not establish a connection to ClearDB while utilizing Proximo services

I am currently utilizing Proximo on Heroku to run my Node.js application in order to obtain a static IP address for outbound traffic. However, since implementing this setup, I have encountered an issue where the MySQL connection is timing out and refusing ...

Losing data while using nodejs, totaljs, and deploying on heroku platform

Having an issue with a recent deployment where data is disappearing. I created demo users with login details and it was working fine for a few hours, but then most of the users and admin posts disappeared overnight. Is there a specific term for this kind o ...

Troubleshooting a Heroku build failure in Node.js due to issues with the Mongodb module

While deploying my app on Heroku, I am facing an issue. My app uses Express and Mongodb. Even though the repository works fine during local development, when deployed on Heroku, there is an error in the logs related to the Mongodb module itself. How can I ...

How do I retrieve the download URL for the file created using Python in my Heroku App?

After developing my Flask App, I uploaded several files to the Heroku filesystem. I'm aware that these files are removed every time the dyno restarts. Now, in my HTML/JavaScript frontend, I'd like to provide users with a download button for thes ...

Tips for building assets on Heroku using Webpack Encore?

After adding the heroku/nodejs buildpack to my Symfony heroku app, I successfully installed my yarn dependencies. Despite this, I am encountering difficulty when trying to run $ yarn run encore production Each time I attempt to run the command, I receiv ...

Is it possible to deploy a slug on Heroku without including the runtime?

I've been exploring the steps outlined in https://devcenter.heroku.com/articles/platform-api-deploying-slugs?preview=1 to generate a slug for my node application and deploy it to Heroku. Considering that Heroku already has a built-in Node.js buildpack, I c ...

Difficulty Encountered While Deploying Mean Stack Application on Heroku

I am embarking on my first journey of building a MEAN stack application, and I successfully created it locally. However, when attempting to host it on Heroku, things didn't go as planned. After researching online, I learned that both Angular and Expre ...

While local production and development prove effective, Heroku restricts calls to the Express server only

Update: Heroku is only recognizing my server file, struggling to incorporate the client as well. Attempting to deploy my first solo-built app on Heroku. While still a work in progress, the basic functionalities are operational. The current version works s ...

The Laravel app on Heroku was unable to locate the Vite manifest file at the specified directory: /app/public/build/manifest

My Laravel project uploaded on Heroku is showing the error message "Vite manifest not found at: /app/public/build/manifest.json" It was running perfectly on localhost, but now it's not working on Heroku. This link provides a preview of the issue: I exec ...

Heroku App push was unsuccessful due to compilation failure of the Node.js application

I made sure to include node_modules in .gitignore so that's not causing any issues! Does anyone have a solution for these errors? I've specified versions for both in the engines section. https://i.stack.imgur.com/tMDOd.png Here is the code : { " ...

Error: The push was unsuccessful due to the pre-receive hook decline on the remote repository

Encountering difficulties when attempting to deploy a NodeJS app on Heroku. The error message reads: remote: Building source: remote: remote: -----> Node.js app detected remote: remote: -----> Creating runtime environment remote: remote: ...

Error message occurs when attempting to deploy rails/react app due to incompatible buildpack

After successfully deploying a Rails app on Heroku, I am now facing challenges with deploying a Rails/React app on the same platform. I have added both Node.js and Ruby buildpacks but seem to be missing a crucial connection between the two environments. An ...

Use Python's request module to send a message to Telegram via API

I attempted to send a message to Telegram using Python while running the code on Heroku. I utilized the import request library for this task. The message was successfully sent, but I encountered an issue with Heroku: Traceback (most recent call last): 202 ...

Having trouble getting my Jquery files to function properly

Take a look at my code: $('li.food').addClass('red'); The website is currently in production. I have created a jQuery file named hide.js in the app/assets/javascripts folder. This snippet is from my application.html.erb file: <head> <%= style ...

Is the process.env.NODE_ENV automatically set to 'production'?

While examining someone else's code, I noticed this particular line. if (process.env.NODE_ENV === 'production') { ... The application in question is a node.js app with express server and reactjs front-end. If we were to deploy it on Heroku, would the NOD ...

Having trouble with socket.io functionality after deploying my application on Heroku platform

I encountered an issue with my app when deploying it to Heroku after working fine locally with socket.io. The problem lies in the socket setup on the client side, which is configured for localhost:5000. Unfortunately, I am unsure of how to resolve this. B ...

Troubleshooting issues on Heroku through log analysis

My project consists of a React frontend with a Rails backend, deployed using NPM. The deployment was successful initially, but now I'm encountering an error when trying to fetch data: heroku[router]: at=error code=H10 desc="App crashed" method=GET pa ...

Issue with Heroku deployment: Express module not detected

I'm currently facing an issue while trying to deploy my Node.js app that includes some getter and setter functions. Despite selecting the Node.js environment on Heroku and providing all necessary environment variables, I keep encountering errors related to ...

Unable to access Heroku login using cURL and PHP

A straightforward PHP script I created for logging into a specific webpage runs smoothly on my localhost using Wamp server. However, when I attempt to run it on Heroku, I encounter a response like this: [image link](https://i.stack.imgur.com/uilks.png). ...

Not suitable for Heroku deployment

I have been attempting to deploy this Nuxt.js application on Heroku in universal mode. Following the necessary steps like "npm run build" and "npm run start" for production mode, everything seemed to be working smoothly. Next, I executed the following co ...

Is there a way to receive live updates for records in real-time using push notifications?

I am in the process of developing a Ruby on Rails ecommerce platform that enables potential customers to place orders while allowing the store owner to receive them instantaneously. Once an order is finalized, it will be saved into the database (currently ...

Heroku does not support custom domain names displaying paths

I have set up my application on Heroku and it can be accessed at Recently, I acquired a personal domain: I successfully pointed my personal domain to the Heroku name. When users visit , they are automatically redirected to . However, the domain path is n ...

What are the most effective techniques for combining Vue.JS and Node.js backends into a single Heroku container?

I came across an interesting blog post today that discusses a method for deploying React applications. The author begins with a Node project and then creates a React project within a subfolder, along with some proxy configuration. About 10 days ago, I did ...