Questions tagged [production-environment]
A production environment is one in that is exposed to its intended audience in a real-world situation.
1,804
questions
-2
votes
0
answers
20
views
How to use external environment file in angular? [closed]
I want to use external environment file, is there any way to do it?
I'm running build script in a branch with it's environment settings and I want to deploy same package in production server with ...
0
votes
0
answers
13
views
wicked_pdf download error in the production server in rails 6 application
In a Rails 6 application, the wicked_pdf was working fine in the local server. It is downloadable, but in the production server it raised issue. Here is the code
controller.rb
def show
respond_to ...
0
votes
0
answers
12
views
How can I configure GridDB's replication settings for high availability?
I'm using GridDB in a production environment and want to ensure high availability in case of node failures. I've read the GridDB documentation; replication is the way to go. However, how can I ...
0
votes
0
answers
16
views
All the pages with getServerSideProps on my website uploaded to vercel.com return 504
I am developing a website with nextjs, and I am uploading it to vercel. But, when I try to go to the login page it returns 504.
Testing I discovered that it is because of using "...
2
votes
0
answers
51
views
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory, Vue e Electron
The problem:
I am creating an application with Vue.js v3, Vuetify v3 and Electron v23, and everything is running on the development environment, but when I try to run electron:build it gives an error:
...
0
votes
0
answers
23
views
Vuejs with Laravel production: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
this question might asked before but the sulotions sugested did not solve my problem.
I'm using Vue2 inside Laravel 7, in Live vps server when I run npm run prod I get below error.
FATAL ERROR: ...
-2
votes
0
answers
24
views
All HTTP Request working fine, except PUT and DELETE
Open the IIS
Go to Handler Mappings in your IIS Manager.
Find ExtensionlessUrlHandler-Integrated-4.0, double click it.
Click Request Restrictions... button and on the Verbs tab, add both DELETE and ...
0
votes
1
answer
88
views
Custom CSS is missing in production build of create react app
I have a ReactJS app using create-react-app, using the MUI library and a small amount of custom CSS. During development everything is fine, but when i create a production build with npm run build or ...
0
votes
0
answers
10
views
Celery daemonizing debugging - systemd
My setup:
/etc/systemd/system/celery.service
[Unit]
Description=Celery Daemon
After=network.target
[Service]
Type=forking
User=celery
Group=celery
EnvironmentFile=/etc/conf.d/celery.conf
...
0
votes
0
answers
18
views
Unable to connect to socket.io in production environment
In development, this is how I was connecting to socket.io:
// server.js
const express = require('express')
const app = express()
const port = 8000
const server = app.listen(port, () =>
...
0
votes
0
answers
9
views
Nginx - serving multiple builds
I am working on large project.
frontend: react + typescript
backend: spring boot java
Recently the codebase starts growing larger in frontend (due to large number of forms).
project
|--> app1
`--&...
0
votes
1
answer
59
views
Automatic push from different branch using Gitlab CI/CD
Maybe this is a stupid question, but I wanted to know in practice how this is handled.
Let's say what for a very simple project I have two branches on GitLab: "production" and "...
0
votes
0
answers
12
views
How to create a bar chart with a specific time frame on x, % of efficiency on y and columns width depending on duration?
I am studying the utilization of machines and would like to make a special bar chart.
My data set I created is made like this"
Program Name, Start Timestamp, Finish Timestamp, % of efficiency
I ...
0
votes
0
answers
8
views
Bundled files showing angular version in production
In production, bundled main.js file is exposing information about the version of angular framework used on the website.
Any way we can remove dependencies or hide it from bundled files ?
I m using ...
2
votes
1
answer
34
views
Should I transpile my TypeScript application?
I recently started building a small project with TypeScript. It is a small application that runs some workflows based on received Webhook calls. This means that it exposes an Express app to handle ...
1
vote
1
answer
141
views
In production, calling in next-auth function Signout(), with or without callbackUrl, always brings the user to "localhost:3000"
I deployed my Next.js app to AWS Amplify, set my environment variables correctly (including APP_URL and NEXTAUTH_URL, which are the same btw), and despite the fact I can sign in using credentials (...
0
votes
0
answers
17
views
I am facing issue in --prod during production build generation
Problem statement: I want to minify my all scripts which is why I am using the --prod tag in my build script but it's causing an issue without the --prod tag my build is generated successfully but the ...
0
votes
1
answer
33
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 ...
0
votes
0
answers
29
views
access to database denied on production server
My team has recently been denied to access a database production server of which our application depends on to consume data. The other team who is responsible to this database told us they've had bad ...
1
vote
0
answers
76
views
Laravel 8 JS breaking when minified by Mix
I have a project I am working on that works fine with npm run dev/npm run watch.
When we moved it to production and ran npm run prod, we had a console error of;
t is undefined
This error did not show ...
-1
votes
1
answer
33
views
How often am I allowed to contact PayPal API?
Right now I contact the PayPal API to check the subscription status everytime the user enters the profile settings, and each time a new access token is generated.
Is this considered a bad practice in ...
0
votes
2
answers
197
views
How to remove prisma models with data in production
I want to delete 2 models from a postgreSQL production database that are no longer used but have data on them.
I am a bit afraid of removing them from the schema and running prisma migrate dev and ...
0
votes
0
answers
51
views
React App - Only some images in public folder show up in production, some don't
In my React ("react": "^18.2.0") App I display Images in a Material UI MUI v5 CardMedia Component like so:
<CardMedia
component="img"
width="100%"
...
0
votes
0
answers
74
views
Failing to build Symfony 5 Encore project in production with npm
I'm trying to manage the deployment of my Symfony 5 app, using Encore for the first time.
I'm facing 2 problems that might be linked, or maybe not i don't really know.
All of my Js files including ...
0
votes
0
answers
26
views
Protecting a Parse Dashboard
I have a parse/mongoDB running locally and am wondering about putting the Dashboard live for my client to access online.
Currently the endpoint /dashboard shows all the user data with read/write ...
0
votes
2
answers
208
views
How to set API path during production build in Angular 15
In Angular 15, There is no environment files so we are using proxy.config file for setting api path for local development but that will not work in production build.
Below is the proxy.config.json ...
0
votes
1
answer
40
views
Does useEffect run twice in production?
The question is pretty straight forward.
I know that it is supposed to run twice in development to faster identify bugs.
But no I ask myself if I need to configure something so it does not happed in ...
0
votes
0
answers
20
views
Nextjs next-authjs production issue client_fetch_error invalid json response body at http://127.0.0.1:3000/api/auth/session
I have implemented Nextjs next-authjs with google.
On production i am facing this issue.
umesh.bhat@mcs:/var/mcs/test/gui-mcs-front-end$ npm run dev
> mcs-front-end@1.1.0 dev /var/mcs/test/gui-mcs-...
0
votes
0
answers
23
views
Rails JS assets not present in production (Heroku)
Building a Rails 7 app, which works fine in development. When uploading to Heroku, JS doesn't work and no JS is in the asset folder and I get the following errors. CSS works fine:
2022-12-31T09:21:44....
-1
votes
1
answer
16
views
Post request different on production server
I have a Flask app that is working fine on my local computer. But on the production server it seems I have not configured something correctly.
This is my ajax function:
$('#btnSearch').on('click', ...
1
vote
0
answers
273
views
Why next-auth google provider work in development but always returns "Try signing in with a different account" in production?
OAuth login with google fails and always returns "Try signing in with a different account", however it works pretty fine in development.
I have created credentials for my OAuth service
...
0
votes
0
answers
35
views
ckEditor5 online build works in development, not in production mode
Downloaded final build with required plugins from https://ckeditor.com/ckeditor-5/online-builder/
Extracted build content into a folder name ckeditor5 in root of project.
Installed the local package ...
3
votes
1
answer
4k
views
Error: connect ECONNREFUSED 127.0.0.1:5432 at TCPConnectWrap.afterConnect [as oncomplete]
I have a simple node application with postgres database that is running perfectly on my local Machin ,
i used to deploy backend application on Heroku,Since it has no more free services i tried many ...
0
votes
1
answer
78
views
How to make an HTTP request from a remote web client hosted by an npm server to a private port of a backend server running behind the Linux Firewall
There is a front-end npm server hosted on a public port 80 in my production environment. I can launch a remote web browser client of this front-end server using its public hostname, e.g., http://...
0
votes
1
answer
27
views
How to fix Django website showing 404 errors on all website links online
so i recently uploaded a my first django website on cpanel . After uploading i realised the website is showing 404 errors on all website links ... let me show the links and urls
`from .views.home ...
0
votes
0
answers
58
views
Although my site enable me to click on the link in local environment, don't in production
situation
using
PHP 8
Laravel 9
Now I have just deployed in production environment. When I come my URL which is already simbolick, toppage(welcome.blade.php) appeared. I am putting link to contact....
0
votes
1
answer
32
views
How to run pytorch neural network as if it was in server
I have a model like so that I've already trained
import torch.nn as nn
import torch.nn.functional as F
transform = transforms.Compose([
transforms.Resize(30),
transforms.ToTensor()
])
class ...
0
votes
0
answers
143
views
How to use kubernetes yaml file env variables in react applications?
I am trying to replace my local env variables with kubernetes yaml file env variables .But they are not replacing and my react app is only taking local env variables (i am using process.env. to get ...
1
vote
0
answers
88
views
Hapi route throws 404 on production whereas works on localhost
I have a node application that runs perfectly on localhost. All the routes are run and respective responses are sent back. When the same is deployed on production, only the healthcheck route throws ...
0
votes
2
answers
46
views
ansible playbook / bash script
bonjour / hello
First of all sorry for my very poor english, I'm french and I used google translator.
I'm using an ansible playbook to run a bash script. In my test environment it works, but not in my ...
0
votes
3
answers
233
views
For the PROD environment I have to use the same variable, but with a different value. How to do it?
I have a pipeline that uses variables from Library. For the IN, QA, and STAGE environments, I use a variable from shared variables. But now I need to create a PROD environment and deploy to PROD. And ...
0
votes
0
answers
30
views
I want join paths between both frontend and backend and I tried a lot but only half is getting merged but not another half
This is my server file
[I can't find any error please guide me]
{ const express = require("express");
const path = require("path");
const cors = require("cors");
const ...
0
votes
0
answers
161
views
How to Fix Token error Malformed auth code in production
So basically I am trying to use passport.js in my application and it works as expected in development
but when I push my code in production it gives error say Token Error : malformed auth code
Error ...
1
vote
1
answer
155
views
Django: media files doesn't load up uploaded by user in production environment
I'm hosting my site in railway. Everything is set up and works fine but the images uploaded by user don't load up.
settings.py
STATIC_URL = '/static/'
STATICFILES_DIRS = [
os.path.join(BASE_DIR,'...
0
votes
0
answers
15
views
NextJS fetches a fiile from the filesystem in develop but fails in production
I have a sort of static files in my project. I need to know the name of the file to fetch, so I did this:
export const getServerSideProps: GetServerSideProps = async ({params}) => {
const {...
0
votes
0
answers
8
views
Qualification Group
May I check if there is a possibility to add-in the Competency under Qualification Group tab as below?
If yes, kindly help to explain the details on how to add-in the Competency and what info/data do ...
0
votes
0
answers
14
views
Project setup using production build in JS frameworks
I have a production build on server but I have no project setup (source code), so now I want to release a new update in front end - then how should I do that?
Projects in AngularJs.
--source-map=true|...
0
votes
1
answer
63
views
How to update a live running server?
I am going to publish my first rest api soon. My question is, once I publish it, how can I update the code of the server? I already added versioning, but I still don't understand exactly what will ...
1
vote
1
answer
222
views
How to setup Ratchet Websocket server for production for Symfony 6 app on platform.sh
I am trying to setup a Ratchet Websocket server on my Symfony 6 app for production environment on platform.sh
Didn't find any reliable documentation about the subject, I have several questions :
...
0
votes
1
answer
319
views
getServerSideProps working fine in dev mode but fails in production but useSWR works fine
I have this simple code in my nextjs. I'm getting my data properly when I'm in dev mode but as soon as I deployed it to production using vercel I was getting the "request failed with error 503&...