Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
46 views

When deploying Django to prod, Gunicorn lives in the virtual environment, but we deactivate the virtual environment when we go live with Nginx

I've been following a few tutorials online on how to setup Django, Postgres, Gunicorn and Nginx in production. I noticed that it is always recommended to install all Python dependencies inside the ...
japonix's user avatar
  • 65
0 votes
0 answers
58 views

Creating Dynamic sitemap.xml for react website using router dom sitemap giving error cannot run import module outside

Am trying to create dynamic sitemap for my react site generate-sitemap.js file const fs = require("fs"); const routes = require("./src/routes.js"); const sitemapRoutes = ...
Stay Foolish's user avatar
1 vote
0 answers
60 views

Nextjs static & dynamic rendering

In my app I have a dashboard. export default async function Home() { return ( <MainContainer> <main className="overflow-auto flex flex-col min-h-[calc(100vh-120px)]">...
Richard Walter Landa's user avatar
0 votes
1 answer
921 views

Clear browser cache on React Vite build bundle

For a new production build on a React/Vite app, I'd need to clear a browser cache, otherwise there is an error: Failed to load module script: Expected a JavaScript module script but the server ...
Philip Tran's user avatar
-1 votes
1 answer
414 views

Nextjs: how to debug production locally because development is working perfectly

My nextjs setup is running perfectly in development. When do a build, all is building as it should. But when we serve production locally we get Error: Element type is invalid: expected a string (for ...
MarioVde's user avatar
  • 145
0 votes
1 answer
47 views

GitLab - Managing Non_prod and Prod configurations

I need some pointers / guidance. As of now, we manage config for Non-Prod [Dev, QA], Prod [Prod] in different folders - one for each of these environments. Project 1 Dev Config QA Config Prod Config ...
Pankaj Bhalla's user avatar
0 votes
1 answer
361 views

ruby on rails - Unable to load application: LoadError: cannot load such file -- database_cleaner/active_record

I am trying to deploy ruby on rails project on render platform. I inherited this project in my school and added new features there. I get the following error when I run my Rails application in ...
Anastasia's user avatar
0 votes
0 answers
160 views

Expo app crashes on when I use `npx expo start --no-dev` but runs fine with `npx expo start`

I have created a new expo app (react native). When I am running the app in --no-dev mode, the app is crashing without opening. But, the app runs perfectly fine in development mode. I am encountering ...
fortnight learner's user avatar
0 votes
0 answers
45 views

Angular Routing fails to find Lazy-Loaded child routes in project with multiple Apps

Project Structure: I have a project with 4 different apps wrapped in a folder in the following structure: apps | |+-- dashboard | |+-- app.module.ts | | | |+-- app.routes.ts | | | |...
IMeyers20's user avatar
  • 103
0 votes
2 answers
359 views

Cloudinary showing JSON error in production

I am using this cloudinary function in my nextjs project import { v2 as cloudinary, UploadApiResponse } from 'cloudinary' import dotenv from 'dotenv' dotenv.config() const cloudinaryConfig = { ...
abed dak's user avatar
0 votes
0 answers
33 views

Building and hosting a react app on shared hosting

If there is anyone of you familiar with strapi react full stack or actually any other stack (ofc you are ) but are you familiar with hosting backend on a server then react app on shared hosting ( ...
Bahachairet's user avatar
1 vote
1 answer
680 views

Next.js & sanity | Error occurred prerendering page "/" while npm run build

Next.js application uses sanity, I tried so many things but none of them worked for me, Every component is exported and imports are also correct. while doing npm run build application gives following ...
Prathamesh R. Pawar's user avatar
1 vote
1 answer
999 views

Nginx config with both SSR Client and API server

I'm facing a problem with an Nginx sites-available config file. I'm trying to set up a client that uses Server Side Rendering (SSR) with Nodejs, and a RestfulAPI that uses Ruby on Rails. What I want ...
OST's user avatar
  • 11
0 votes
1 answer
2k views

How to deploy an Angular Web App and an ASP.NET Web API on IIS to work on a subdomain?

I have an Angular application that should run in the following URL: https://subdomain.domain.com/ I have an ASP.NET API, with versioning and CORS already enabled, that I would like to run in the ...
Kevy Granero's user avatar
0 votes
0 answers
51 views

Cannot build production the MERN stack web

In my local it working well , but when I deploy. It can not get the endpoint of server Here is my server code. require("dotenv").config(); const express = require("express"); const ...
Quang Phú Nguyễn Hoàng's user avatar
1 vote
0 answers
62 views

How to gracefully restart a HTTP API with timers

I have a HTTP api written in golang on the go-fiber framework that handles bookings. type Booking struct { Active bool `bson:"active"` Created time.Time `bson:"created&...
haste's user avatar
  • 99
1 vote
1 answer
245 views

Chrome extension + webpack - message passing in production mode

I am building a chrome extension in React and webpack. I use chrome messaging API to communicate between the background page and the popup or content script. In the background script, I use browser....
Petr Špác's user avatar
1 vote
1 answer
51 views

How do companies manage their relational databases using code? RDaC? [closed]

There has been a major push to switch to Infrastructure-as-Code through things like Terraform and AWS's CDK/CloudFormation. How do companies manage their relational database schemas though? Are there ...
please_help_im_confused's user avatar
0 votes
1 answer
137 views

Does each Microservices have different hostname for production site?

I have microservice based project in Spring-Boot. If I want to publish it live on production with HTTPS, then do I have to buy different hostname for each of the microservices? Or is there another way ...
Yash Kakrecha's user avatar
0 votes
1 answer
145 views

Intermediate step(s) between manual prod and CI/CD for Node/Next on EC2

For about 18 months now I've been working in Node; and for the last 6 months I've been slowly migrating my existing WordPress websites to NextJS. To date, I've been deploying to production manually. I ...
philolegein's user avatar
  • 1,485
0 votes
0 answers
105 views

Facing issue while building next app using npm run build

Error occurred prerendering page "/actions/user". Read more: https://nextjs.org/docs/messages/prerender-error Error: Minified React error #31; visit https://reactjs.org/docs/error-decoder....
user avatar
1 vote
1 answer
468 views

Electron application installed in system does not open because "iohook" library used in the "main.ts" file

I am making an application using ElectronJS and I am facing an issue. FYI: I am using electron-react-boilerplate for my application. And I use a npm library called iohook to catch all the system ...
Vrinda Goyal's user avatar
1 vote
0 answers
95 views

How to have my dev database mirror my production database in MongoDb

I am looking to have an exact copy of my production database to be used in dev for testing. What I would prefer is if changes are made in production they will be mirrored in dev but if changes are ...
Adil15's user avatar
  • 425
3 votes
1 answer
2k views

SimpleImputer object has no attribute _fit_dtype

I have a trained scikit-learn model pipeline (including a SimpleImputer) that I'm trying to put into production. However, I get the following error when running it in the production environment. ...
Jakob's user avatar
  • 853
0 votes
0 answers
273 views

Missing fields in API response in Production

I have a mern app that I am using to fetch packages from my backend. It works in development but not in production when I host it on AWS EC2. I figured out that the reason it's not working id because ...
Mi8Guy's user avatar
  • 37
4 votes
1 answer
5k views

next-auth GET /api/auth/session 400 CLIENT_FETCH_ERROR Unexpected token 'E' (Netlify deploy)

Problem: My next-auth works locally, but when I deploy it to Netlify I get this CLIENT_FETCH_ERROR when accessing anything (RouteGuard component calls useSession hook and pushes to /auth/signin if not ...
kroflic's user avatar
  • 153
0 votes
2 answers
2k views

How to dynamically change API url during build to remove localhost part for production

I am trying to run a build of a Vue app where the urls for each of my API routes will drop the localhost:3001 used for development after the build. The problem is the production app is using nginx ...
mikeym's user avatar
  • 6,143
0 votes
1 answer
4k views

Keycloak using bitnami with production config

I've been trying to get a HA production ready Keycloak up and running for a week now and I'm starting to become quite annoyed.. Yesterday I decided to go with helm & bitnami (cause it's supposed ...
user3677636's user avatar
0 votes
2 answers
1k views

Keycloak high availability cluster on Kubernetes ERR_TOO_MANY_REDIRECTS when login to admin console

I'm trying to deploy a high availability Keycloak cluster on AWS EKS. I've tried to follow the Configuring Keycloak for production instructions, but I find it pretty fuzzy. Anyhow, I have: EKS ...
user3677636's user avatar
16 votes
12 answers
29k views

Keycloak admin console loading indefinitely

I have a Keycloak server running in an EKS cluster that I'm trying to configure for production instead of dev mode. I've managed to get SSL working with a reverse proxy, but when I go to the login ...
user3677636's user avatar
0 votes
1 answer
3k views

How to configure Angular proxy on the Server prod?

I am testing a new aproach in my front end App build with Angular, and i want to hide the API url from the browser Network. form example : to call login on api.url.dz/login i want to call front.url.dz/...
Abderrahmane BECHIKH's user avatar
6 votes
3 answers
4k views

How to know if flutter app is in production mode?

I am configuring an API endpoint using the flutter package dio! I have two API endpoints: one for development and another for production. I want my dio baseURL to automatically switch between ...
BAIMAM BOUKAR JEAN JACQUES's user avatar
1 vote
1 answer
929 views

React.js i have Bug in prod but not in dev mode, can you help me

I've been having a problem for 3 days now, and I don't really understand what can cause this bug, can you help me? Here is the problem, I have created a small game(react.js) where 5 cards are ...
Rodolphe Augusto's user avatar
0 votes
0 answers
25 views

Zend FrameWork Production Deloyment whitescreen

I had moved my zend framework 1.11.11 project to production server windows 2012. while running i am getting whitepage only.pls help on this site is not working for 3 days. steps have done for ...
pk_'s user avatar
  • 129
0 votes
0 answers
399 views

problems deploying my create-react-app application on a cloud hosting

I'm trying to deploy my app on Heroku. I chose Heroku and I'm using the free stuff, I don't know if it has something to do with it, I could have chosen another one. For example, I tried to deploy it ...
Rafael's user avatar
  • 2,691
0 votes
1 answer
350 views

AWS EC2 instance not showing Rails app production

Quick newbie question. I have a simple Rails app that I want to put into production. I would like to deploy it in a AWS EC2 server. The app works perfectly fine locally on the port 3000. I tried ...
josegp's user avatar
  • 529
0 votes
0 answers
312 views

Transitioning react app from dev to production environment causes 401/unauthorized errors

I've been tasked with transitioning a development CRA build to work in production. Currently we use an api proxy in development with a setupProxy.js file as such: const BACKEND_URL = process.env....
heroesrule99's user avatar
1 vote
0 answers
476 views

React App production build process and environment variables

I have a react app. For QA i will build my app, with QA .env variables, from git tag QA-v1.0.0, which are immutable and bundled into the application build. I will then have an image tagged as QA-v1.0....
rubio's user avatar
  • 956
0 votes
3 answers
5k views

Separating Dev Prod Environments In AWS

I’m my scenario wants to separate out the production environment from our development environments. We'd like to only have our production systems on one AWS account and all other systems and services ...
Santosh Baruah's user avatar
3 votes
0 answers
398 views

Workflow: Docker Services from Development to Production - Best Practice

I have been developing a web application using Python, Flask, Docker(-Compose) and git/github and getting to the point where I try to figure out the best way/workflow to bring it to production. I have ...
Phil's user avatar
  • 677
2 votes
0 answers
2k views

Reload React application (frontend) after building it

I have a React app created with CRA. Every time I deploy it to production and build it, the hashes in the chunk filenames change. At that moment the app fails silently (just shows the user a blank ...
korzen's user avatar
  • 21
0 votes
0 answers
208 views

How to resolve the error 134 while running the command npm run build in the react app?

I am running the "npm run build" command in the frontend folder and it is showing error 134. Here is my package.json file. { "name": "frontend", "version": &...
Mayankesh Jha's user avatar
0 votes
2 answers
157 views

.NET Core - Confirming asset has been included with production build

I've got a .NET Core Web API Solution with multiple projects, I'll post the structure below and the paths where necessary. I have an Email Service that pulls a template from a path in the same project,...
Marc Freeman's user avatar
0 votes
0 answers
1k views

Why does my Vue JS app crashes in prod server but works fine in dev?

I have run my Vue JS app in development server multiple times and never faced a single issue with any of the functions. However, as soon as I deploy my application in the production server everything ...
Shihab's user avatar
  • 313
0 votes
1 answer
456 views

Build/Publish a web .netcore api : I can't access any of my endpoints they returns 500 from postman

I have a .net 5.0 web api application. I want to publish build it to run it on a windows server 2019. I build it locally in commandline using "dotnet run --launch-profile CMDLINE" CMDLINE ...
ItsNotMyFault's user avatar
0 votes
0 answers
69 views

Django - Migrating data inside tables for smooth release

I am using Django Rest Framework for backend development, where I have set up 2 environments. I have split settings files as required and both the environments have different DBs which are working ...
Dexter's user avatar
  • 247
2 votes
1 answer
1k views

Vue - Remove specific JavaScript files for production mode

I have lots of .js files to import in Vue components in my project. Some of these JavaScript files are meant to be used in development mode and they won't be included in production but I am not ...
Yasin Demirkaya's user avatar
1 vote
0 answers
208 views

Django / Docker, manage a million images and many large files

The project I am working on relies on many static files. I am looking for guidance on how to deal with the situation. First I will explain the situation, then I will ask my questions. The Situation ...
CyberFly's user avatar
  • 857
2 votes
1 answer
1k views

Do I need to include node_modules in the production ready project?

If I am building a WordPress theme, do I need to include the node_modules folder in the finished theme or it's only used for development? When running my git commit, should I ignore the node_modules ...
JayDev95's user avatar
  • 996
1 vote
1 answer
10k views

Getting "java.lang.NoClassDefFoundError: Could not initialize class" only in QA environment, not locally?

I have seen this: java.lang.NoClassDefFoundError: Could not initialize class XXX And this: Different methodologies for solving bugs that only occur in production But my question is, given what the ...
troyblerg's user avatar

1
2 3 4 5