Questions tagged [deployment]

A sequence of events to prepare and present a program for utilization, typically in testing or operational settings.

Deploying Next.js on an AWS EC2 (Linux instance) Tutorial

I have successfully developed a Next.js application. My current challenge involves deploying this application on an AWS EC2 instance. I have managed to deploy it on the EC2 instance, similar to how it runs on my local development server by moving the enti ...

What are the steps to successfully deploy a static website created with Next.js on Vercel?

Using the Next.js static site generator, I created a simple static site that I now want to deploy on Vercel. However, I keep encountering an error during the build process. While I have successfully deployed this site on other static hosting platforms befo ...

Following deployment and page building in REACT JS, the pages fail to open

As a student still learning, I'm in need of assistance with a project. When I deploy the system and run the build, the initial page works fine but all redirects fail to work. If you'd like to view the page, it's available at: I'm seei ...

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 ...

What could be causing the problem with my CSS background-image being referenced correctly?

Everything seems to be in order: background-image: url(./dir/img.jpg); However, I encounter a 404 error when attempting to reference an image using this approach: index.html <div style="--url: url(./dir/img.jpg);"></div> css backg ...

Guide on launching a NodeJS Express API using PM2 on a cPanel shared hosting server

I have set up an API using Express configured to run on PM2 instead of the node process. Currently, I am using ventraIP shared hosting with cPanel. The cPanel provides options to set up a NodeJS app, configure directories, perform npm installs, and use us ...

What are the steps for utilizing svn+ssh within a PHP script?

I am facing a challenge in accessing the repository from a CakePHP project called fredistrano (which allows CakePHP deploys with a web 2.0 interface). The issue arises when I try to access fredistrano located in my web broadcasting directory on a shared Un ...

The environment variable process.env.variable works perfectly fine during local development, however, it seems to malfunction once the application is deployed to Heroku within

Currently, I am utilizing nuxt.js and attempting to display images dynamically. To achieve this, I have implemented the BASE_URL variable within the .env file, allowing me to access image files based on the set BASE_URL in my local environment. .env file ...

I'm encountering an npm deployment issue on Digital Ocean, what could be causing this?

As someone who is new to deployment, I am encountering errors that I cannot seem to resolve using Google. My platform of choice is digital ocean, and here is the error log: npm ERR! cipm can only install packages with an existing package-lock.json or npm-s ...

Having trouble deploying Node.js due to encountering a require statement error?

After deploying my app on Azure and trying to access the endpoint, I encountered this error message: Error [ERR_REQUIRE_ESM]: require() of ES Module C:\home\site\wwwroot\index.js from C:\Program Files (x86)\iisnode\interc ...

Deploying Lambda projects on Amazon Web Services

Currently working on developing AWS Lambda functions for my project in Node.js, and I am now exploring the most efficient deployment method. My ideal approach would involve: Translating the ES7 code into a format that Lambda can interpret, potentially ut ...

After being deployed via Vercel, MongoDB faces connectivity issues with the web

After deploying my web app on Vercel, I encountered an issue where the MongoDB connection was working fine during development but failed to connect after deployment. It was suggested before deployment to reduce the function running time from 300s to 10s du ...

Discover the steps to successfully deploy a create-react-app project on GitHub Pages, while resolving the error message "fatal: Could not read from remote repository."

Whenever I try to deploy a create-react-app on GitHub pages, an error occurs. I have enabled gh-pages in the repository's settings, installed the necessary dependencies for gh-pages, and added the required scripts to package.json. The repository can be f ...

React app experiencing issues with mui icon display upon deployment

I am facing an issue in my app where I am trying to import a mui/icon: import PriceCheckIcon from "@mui/icons-material/PriceCheck"; When running the app locally, the icon appears fine. However, once deployed on Surge or Vercel, the icon does not ...

Upon completing the build process, a blank white page appears when attempting to run it

I executed the yarn build command and received the dist folder. However, when I run the index.html, I encounter a blank white page. Directory Structure:- :~/Desktop/web$ ls babel.config.js docs node_modules public src yarn.lock ...

Implementing Next.js on the Vercel platform

I'm facing an issue deploying a Next.js app to Vercel, encountering this error during the build process https://i.stack.imgur.com/oj4XU.png Although I don't come across any errors when building locally, it triggers an error during the Vercel bu ...

What is the best way to use PM2 for deploying my node.js application to various environments and ports within a single server?

I am facing an issue with deploying my node app using the ecosystem.json file and PM2. Despite trying various configurations, I have been unable to achieve my desired goal: To deploy the app in either a production or staging environment (both currently ...

Issue encountered on IIS 7.x server during deployment with HTTPS

Currently, I am running an Angular + .Net 4.5 fullStack application on IIS V7.5 with Windows Server. To conduct additional tests, I am using multiple instances of the same site with different versions of the application deployed on the same host. Each inst ...

After deploying DRF, the CSS in Django admin is not displaying

After developing a web application using Django Rest Framework and React, I faced an issue during deployment on IIS. While the deployment is successful, I encountered a problem with the Django Admin where the styles were not displaying properly. This led t ...

What is the process for linking a NodeJS app on Google App Engine to MongoDB hosted on Compute Engine?

Looking for advice on connecting a Google App Engine project written in NodeJS to a MongoDB server hosted in Compute Engine. Since the App Engine has a dynamic IP and can't be added to the white list of Compute Engine, what is the best way to establis ...

What is causing the error to occur when attempting to deploy my Node.js application that incorporates MongoDB and Mongoose with Express?

Having trouble deploying my app on Render, I keep getting this error. It works flawlessly on my own computer but for some reason won't cooperate when trying to deploy. Feeling stuck and unsure of what to do next, which is pretty rare for me. Any assistance ...

Failed to deploy the render

I am attempting to deploy a Node application on Render as my deployment service, but unfortunately, I keep encountering a build failed error every time. Here are the detailed logs from the deployment event: Jul 8 07:41:12 PM ==> Cloning from https:/ ...

Unveiling the enigma: Kubernetes deployment rendered with undefined environmental

I recently posted a question on Stack Overflow having a similar issue. I followed the instructions provided in the answer of this post: How to get access to Kubernetes container environment variables from Next.js application?. However, even after calling m ...

Encountered a SyntaxError while deploying Nuxt.js SSR on Passenger: The import statement cannot be used outside a module

I am currently in the process of deploying my Nuxt app on a hosting service that uses Passenger to run Node.js applications. After building the app with the command ">npm run build" and deploying the content from the .nuxt folder onto the server, specif ...

Troubleshooting Next.js deployment with Nginx: experiencing a 403 forbidden error with chunk script files

After deploying my Next app using Nginx, I encountered an issue where the js files inside the _next/static/chunks directory were getting a 403 forbidden error. https://i.stack.imgur.com/TB9TX.png Interestingly, only the js files in the chunks directory w ...

How to effectively manage multiple React apps using a single S3 bucket

When hosting React apps in my development and production environments using S3 static website hosting, I have found great success. I typically follow a bucket naming structure like dev-myapp-mycompany and prod-myapp-mycompany, with each environment having ...

What are the necessary steps to launch Next.js without relying on Vercel's platform?

Looking to deploy a Next.js app, but not on Vercel. What is the process for deploying it? In the past, I would drag and drop the build folder from React to the server, but with Next.js I am unsure of which files need to be deployed and how. Note: I am ut ...

experiencing difficulties in deploying GitHub repository using npm run deploy

Trying to deploy my GitHub repo but encountering an error when running npm run deploy. How can I resolve this? > [email protected] predeploy > npm run build > [email protected] build > vite build vite v5.1.1 building for productio ...

Help with Vue.js App Deployed on Heroku: How to Fix "Cannot GET /" Error?

When I try to access the URL for my Vue.js application (), it correctly takes me to the homepage. However, clicking on the 'Start' button, which should redirect me to '/test', gives me an error message saying 'Cannot GET /test'. I am uncertain about what ...

Error message stating "The file 'routes-manifest.json' was not found during NextJs deployment on Vercel"

My Next.js application was functioning correctly until I added some files to update my code. Now, it is failing to deploy on Vercel and showing this error message: https://i.stack.imgur.com/2y7CB.png Despite searching online for solutions, I haven't foun ...

The bootstrap4 UI Framework Web project encountered an npm run build error

Hey, I'm in need of some assistance. Whenever I enter npm run build into my Windows 10 terminal, I encounter the following errors: 'imagemin' is not recognized as an internal or external command, operable program, or batch file. npm ERR! code ELIFECY ...

I am encountering difficulties accessing the cPanel URL following deployment on Vercel

Running into some challenges while hosting my Next.js 13 application on cPanel led me to an alternative solution I discovered online. The workaround involved deploying the application on Vercel and adjusting the DNS records in cPanel to direct traffic to ...

Are there any guidelines available for me to follow when launching a site built on node.js?

As I wrap up the development of my first website using node.js, I am wondering if there is a checklist to ensure all necessary tasks are completed before launching it. During development, when unexpected values are encountered in my database queries (using ...

When the Github page URL is deployed, it redirects to the homepage, although it functions properly when executed locally

My react-app portfolio is live on github pages at this link: An issue arises when I click on the icon for a specific project: Projects Page Instead of opening the correct webpage, it redirects to the wrong URL shown here: Portfolio WebPage I want t ...

The deployment on Heroku is encountering issues due to TypeScript errors related to the MUI package

As someone relatively new to TypeScript and inexperienced in managing deployments in a production setting, I've been working on a project based on this repository: https://github.com/suren-atoyan/react-pwa?ref=reactjsexample.com. Using this repo has allowe ...

Setting up a .NetCore3.1 API on LinuxCentos with Nginx

Currently, I am facing an issue while attempting to deploy a .NET Core 3.1 API + Angular application on Linux Centos. The application runs fine on the server; however, the browser fails to load it properly. Surprisingly, when I publish the same project for ...

Is it possible to implement an SSL certificate with my Next JS deployment?

Currently, I am running a Next.js deployment on an EC2 instance and looking to secure it with an SSL certificate. My initial thought was to use a custom server config for this purpose, but I'm concerned that it may impact certain optimizations that I'd lik ...

Deployment failed: Unable to deploy due to the absence of the 'out' directory

Encountering an error when deploying a Next.js app to Netlify can lead to deployment failure. The specific error message "Deploy directory 'out' does not exist" is a common issue that users face. ──────────────────── ...

I'm curious as to why these two divs are positioned side by side. Can anyone shed some light on why this footer isn't functioning properly

My goal is to showcase the logo along with 3 buttons containing all the social media links underneath it. However, for some reason, my 2 divs are displaying inline instead of flex or block. Can anyone shed light on why this isn't functioning as expect ...

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 ...

VERCEL DEPLOYMENT ISSUE: "Error Encountered - Module not Found: Unable to Locate 'react' in '/vercel/path0/src'"

Upon updating my React project on Vercel, I encountered an error that persisted despite attempting various solutions. Ultimately, I resorted to deleting the deployment and starting from scratch, only to face the same issue. [11:46:57.878] Cloning github. ...

Using Angular: Embed environment.ts into index.html as a standalone JavaScript file

Angular is typically set up to include the environment.ts file into main.js during the build process. This means that when dealing with multiple environments and corresponding environment.ts files, we must choose the environment at build time. My goal is ...

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 ...

Deploying Python applications within a corporate network: A step-by-step guide

To begin, let me provide an overview of the current situation: Within our organization, we have multiple python applications that rely on both custom (not publicly released) and commonly known packages. These dependencies are all currently installed on th ...

Local Node.js RestAPI functioning smoothly but encountering issues when deployed on a server

After developing a Node.js RestAPI to interact with a MongoDB database on my localhost, I now face the task of deploying it to a server for testing by users. The Ubuntu 16.04 server has been set up successfully with the necessary software (Node.js and Mon ...

Error encountered during compression of build artifacts with exit status 2

An issue occurred when attempting to deploy the application to Cloud Foundry following the installation of packages. Application type: Next.js ...

Having trouble deploying through fab.dev because the Actions module is missing?

Currently, I am trying to deploy my next.js application via fab.dev onto Cloudflare Workers. However, I am encountering an issue where I am unable to successfully deploy the fab.zip file that is generated during the process. ...

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 ...

What is the process for incorporating a new task into my HTML/CSS/JavaScript to-do list application when the Enter key is pressed?

Currently, I am working on developing a to-do list application using HTML, CSS, and JavaScript. The application includes a text input field for users to enter their tasks, along with an "Add Task" button. However, I want to enhance the user experience by a ...

The AWS Beanstalk CLI continues to deploy React and npm development builds

I have a React application along with two AWS Beanstalk instances: one for development and the other for production. My goal is to deploy the development build of the React app to the development environment and the production build to the production envir ...

I'm perplexed as to why my react application appears perfectly on certain devices, yet on newer ones it simply showcases a blank white screen

My application is functioning properly on older Mac computers, but it is not displaying correctly on iPhones or newer models of Macs. I have searched online for hours trying to find a solution, but nothing seems to make much sense to me. Can anyone please ...

What strategies are most effective for handling secret keys when deploying Django projects using Fabric?

Currently, I am attempting to securely store my SECRET_KEY in an environment variable: # settings/base.py def get_env_variable(var_name): """ Retrieve the environment variable or return an exception """ try: return os.environ[var_name] ...

Execute a command post-deployment on AWS Beanstalk

Encountering an issue with executing a command after deployment. I have a node.js project with a script that relies on binaries from node_modules. When I write the command for the script in .ebextensions/.config file, it executes before npm install causi ...

I am interested in sharing photos by posting them on the public folder link and incorporating them into a React app

Just finished building my react portfolio website and now I'm looking to share it for free using platforms like Github Pages or other similar options. The only issue is that I have a few things to consider - my public folder with project images and also ...

During the prerendering process of the /write page in Next.js, a ReferenceError is thrown stating that the

Currently, I am in the process of developing an open-source blogging platform using Next.js. However, I have encountered a frustrating error while deploying the project. The issue arises when attempting to prerender the /write page, resulting in the follow ...

Having trouble deploying my React application on Azure Static Web Apps. Getting these error logs from Github actions:

Things were going smoothly until a series of warnings popped up: npm WARN deprecated <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="621551014f0a104f160b0f0722534c524c50">[email protected]</a>: Use your platform's ...

Forever.js continuously launching and relaunching a variety of scripts

My web application is comprised of three main node.js components: website, feeds, and jobs. To initiate these components, I am utilizing the forever package: //forever.js var forever = require('forever'); function start(name){ forever.start( ['coffe ...

Troubleshooting Internal Server Error on Deployed Next.js Full Stack Application

As a beginner in next.js, I've been encountering difficulties deploying my full stack app. Various platforms like Heroku, Vercel, Netlify, and Nextron all result in the same 500 internal server error. When I switch from "getServerSideProps" to "getSta ...

Struggling to launch my Django-powered API on Heroku

After attempting to deploy my Django-based API on Heroku, I have been encountering the same error repeatedly for what feels like eternity Error logs: *2021-01-31T11:42:30.163925+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=G ...

Issue with Heroku deployment: Module '../databaseInstance/CarModel" not found

Build completed successfully but encountering module error However, everything appears to be fine in the file https://i.stack.imgur.com/SnjJh.png Seeking a solution to resolve this issue? ...

Deploying React.js: Should you release the client and server separately or as a cohesive unit?

I currently have a react.js website with a backend in Node/express that is being hosted on Azure. The project is currently set up as monolithic, meaning every time I make a change to either the front-end or back-end, everything has to be redeployed in pr ...

Steps for deploying and setting up a next.js application on a rented server that has apache2 already installed

I am new to deploying applications and have been looking for information on how to deploy a next.js app on Vercel or other servers that support it. However, I have my own server that I rent, and I have managed to deploy and run the app locally on the ser ...

What strategies can be implemented to prevent downtime in the event of NPM crashing? (specifically with regards to GC App Engine Deployment)

Recently, I experienced the frustration of encountering 429 errors when trying to access NPM servers. Since Google's App Engine relies on an NPM install for server deployment, this issue prevented me from deploying updates to our dev environment for a prol ...

Launching a new VueJS app using PM2 generates a blank process rather than the expected result

pm2 start npm -- serve pm2 start npm --watch -- run dev pm2 start npm --name "vue-app" -- start sudo pm2 start npm run serve --name vue-app -- start When I execute these commands, a process starts but my app does not launch. When I run sudo lsof ...

How can I turn off credential suggestions in a React JS application?

Is there a way to disable managed credential suggestion on a React JS web page using a browser? I have tried using the autoComplete=off attribute and setting editable mode with an onFocus event, but the password suggestions are still appearing. Any help wo ...

Encountered a 404 error when attempting to deploy create-react-app due to failed resource loading

Any assistance would be greatly appreciated. Thank you! Although my website runs smoothly locally, I am encountering issues when trying to deploy it in a production environment. Upon executing npm run deploy, the expected outcome is an automatic build for ...

Upon deployment, Dokku mistakenly categorizes my Node.js application as a Go app

After creating a Procfile with the following contents: web: node web.js I updated my package.json file as follows: { "name": "app-express", "version": "0.0.1", "private": true, "description": "web panel", "main": "web.js", "scrip ...

We regret to inform you that the Serverless Function in NextJs has surpassed the maximum size limit of 50mb

Recently, I've started working with NextJs and encountered an issue while attempting to deploy my project on Vercel. The error message that popped up looked like this: Error! The Serverless Function "api/auth" exceeds the maximum size limit of 50mb, with ...

I am eager to launch my Node.js Server on Azure App Services

While attempting to deploy my node.js server on Azure using app service, I consistently encounter various errors. The issues range from the build command being unavailable in the configuration to difficulties fetching content. It has become quite frustrati ...

The Cruciality of Halting a post-receive hook in case of webpack build mish

In my deployment setup, I utilize a git remote on a server to push a next.js repository. To automate the process, I have configured a post-receive hook that builds the application in a temporary folder and then copies it to its permanent location. It also ...

The deployer is not recognizing the cached binaries

Deployer: 6.4.6 OS: Ubuntu 18.04 LTS npm: 5.6.0 node: 8.11.4 Hello, during the deployment process using deployer, I noticed that my npm install takes significantly longer compared to when I manually execute it via SSH. When manually deploying with the sam ...

I am experiencing difficulties deploying my React app through the npm run deploy command

I'm seeking guidance on troubleshooting the deployment of a React site from Github to Netlify. My deployment code is: npm run deploy Here is the error message displayed in the terminal: npm ERR! code ELIFECYCLE npm ERR! file sh npm ERR! errno ENOENT ...

When attempting to include 'CI' in the package.json build script for a React project, an error message stating, "'CI' is not recognized as an internal or external command" is encountered

Recently, I have been working on a project that I wanted to deploy on Vercel. However, during my initial deployment attempt, an error message popped up saying: Treating warnings as errors because process.env.CI = true In response to this, I made some ad ...

Struggling to publish my Next.js app on Vercel. Any suggestions on how to proceed?

I have been facing an issue with my Next.js project. It runs smoothly on localhost, but I encountered a problem when trying to deploy it on Vercel. Below are the errors that I received: npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! ...

What is the best way to securely store my API keys on Heroku while ensuring my app can still access them?

I have recently completed developing a Node application and I am now in the process of deploying it on Heroku. Within my app, I utilize various API keys which are stored in a separate file that is accessed using exports throughout the application. The API ...