-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add environment variable while using npm ? #68
Comments
You cannot run Yaade exclusively using NPM. NPM can only build and serve the frontend part (static HTML, CSS, JavaScript). To run Yaade you need to: a) run it as a docker container If you go for (b) the script will build the frontend, put the static files into the static folder of the server, build the server, and then output a single jar file that you can run normally. If you go for step (c), then you need to start up all components manually:
Now you should be able to go to |
|
I am not sure where I did wrong but I wanted to make some changes in the front end part. I changed the logo on client/src/pages/login/Login.tsx . I am able to see the changes which I made when I run npm run dev but not able to see the changes when I run using the executable jar file |
Yes if you actually want to make changes you need to run the three components in dev mode as I explained above. |
I am trying to run yaade on my ubuntu machine using npm. I tried setting the env using export YAADE_ADMIN_USERNAME=admin but I doesn't work. ofc it works while I run it using the executable jar file but when I use npm run dev it doesn't work. what's the workaround for this ?
The text was updated successfully, but these errors were encountered: