Inside the server folder: npm run start.The NodeJS server is also capable of serving out static content. Move the dist output folder created inside the client folder to the server folder.Inside the client folder build all the static files with: npm run build.For production, make sure you set the NODE_ENV to production. Update the NODE_ENV inside the file server/.env.For production, make sure you set the VITE_NODE_ENV to production. Most likely you want to remove port 3000 and point to the url where the backend will be running. Update the VITE_APP_HOSTNAME and VITE_NODE_ENV inside the file client/.env.If you would like to run RSSMonster in production mode I recommend to run: Inside the server folder: npm run debug.If you would like to run RSSMonster in development mode I recommend to run: Optional: Add a cronjob to crawl every 5 minutes.Alternatively you can also uncomment the //force: true in the app.js inside the server folder to create the schema structure. this will add all needed database tables and content to your mysql database. node_modules/.bin/sequelize db:seed:all in side the server folder. node_modules/.bin/sequelize db:migrate &. Change the VITE_APP_HOSTNAME, so it points to the back-end. env inside the server folder and enter your Mysql or Database server login data (at least fill DB_DATABASE, DB_USERNAME and DB_PASSWORD). env.example file in the root of both the client and server folder.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |