Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

[Bug] Registration not working #21

Closed
TechDude98 opened this issue Nov 2, 2020 · 5 comments
Closed

[Bug] Registration not working #21

TechDude98 opened this issue Nov 2, 2020 · 5 comments
Assignees

Comments

@TechDude98
Copy link

Describe the bug
When trying to register for the first time, it does not work correctly. It just sits on the register page and does not process.

Expected behavior
To register the first admin account.

Desktop (please complete the following information):

  • Browser: tried Chrome, Opera, Firefox and IE
@casperiv0
Copy link
Owner

Are you getting any errors in your browser console? Or in the main console?

@TechDude98
Copy link
Author

So interestingly.. I am running this in an AWS EC2 Instance, and when I tried to run npm run build in the client folder, it came up with this:

ubuntu@cad:~/snaily-cadv3/client$ npm run build

client@1.0.0 build /home/ubuntu/snaily-cadv3/client
react-scripts build

Creating an optimized production build...
The build failed because the process exited too early. This probably means the system ran out of memory or someone called kill -9 on the process.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! client@1.0.0 build: react-scripts build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the client@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/ubuntu/.npm/_logs/2020-11-03T16_26_40_274Z-debug.log

@TechDude98
Copy link
Author

Might have to upgrade my VPS.. lol - but it was coming up with an error about localhost:3000 not matching the IP or domain name.

@casperiv0
Copy link
Owner

Yea, you have to change the localhost in client/src/config.ts to the IP or domain name of your instance. And make sure it matches the one in server/config.ts, make sure to run npm run build in both folders after updating it

@casperiv0
Copy link
Owner

casperiv0 commented Nov 3, 2020

so for me it would be: my example IP is 99.99.99.99

My server is running on port: 3030
Client is running on port 80

Server config:

const config = {
  port: 3030,
  clientUrl: "http://99.99.99.99",
  host: "localhost",
  user: "root",
  password: "admin",
  databaseName: "snaily-cad",
  jwtSecret: "bongo super cat",
  env: "production", /* Do NOT change this unless you know what you are doing! */
};

export default config;

Client config:

const SERVER_URL = "http://99.99.99.99:3030";

export default SERVER_URL;

Hope you understand.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants