Comments (3)
Hello :)
Production mode isn't super straigthforward i must admit.
The production mode structure isn't compatible with the GIT project's structure.
Fontend build files for production run must be on the "public" folder, but the GIT project's "public" folder contains only some static files used by Vite to build the "dist" folder.
Basically, if you want to run the project in production mode ("env.conf" content set to prod
) you must move everything to a dedicated folder.
Here is what I do to deploy on production:
npm run build
.- this will build the frontend project in the "dist" folder and the backend project on the "server" folder
- take the content of "server" folder and put it on the project's root of my server (next to node_modules)
- take the content of "dist" folder and put it inside a "public" folder on the project's root
- set the "env.conf" content to
prod
so the app points to the proper folders
With this things should be running properly.
Maybe the readme is missing a line stating explicitely that the files should be move outside the GIT project folder.
Is this what you missed ?
from twitchat.
Your explication works, thank you
from twitchat.
Just saw the readme indeed had an error it was saying "set the content of the dist
folder to the dist
folder of the server" instead of "[...] the public
folder of the server"
Also I'm gonna renam the local public
folder to static
as it makes more sense and will be less confusing :)
from twitchat.
Related Issues (20)
- Avermedia ax310 widget HOT 1
- Unable to access OBS remotely HOT 1
- Unable to use the obs integration HOT 6
- Outil de sondage des raids HOT 2
- Petit soucis avec les triggers HOT 6
- Under linux, freetype source not recognized as text for trigger HOT 3
- TypeError in parsePlaceholders HOT 3
- Add custom overlays HOT 7
- Sources are not moved if animation is enabled HOT 3
- Add a enable toggle button on trigger page HOT 1
- Add font-weight and font-familty setting HOT 2
- Add .editorconfig HOT 3
- Viewer count icon not showing HOT 3
- Do not "nudge" the chat when the pause option is enabled HOT 2
- Suggestion - Add an advanced option for chat command hide functionality HOT 1
- Multiple Twitch Accounts? HOT 1
- Start/Stop OBS stream depuis chat HOT 2
- Contrôler des applis depuis Twitchat HOT 2
- Add an action to change the CSS in OBS source HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twitchat.