This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
The React Compiler is not enabled on this template. To add it, see this documentation.
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint
in your project.
Transfert vers server Ubuntu (déploiement frontend sur server)
npm run build
Compress-Archive -Path .\dist* -DestinationPath .\dist.zip -Force
scp .\dist.zip anthony@192.168.1.35:/tmp/dist.zip
B) Sur le serveur (Ubuntu)
sudo rm -rf /var/www/ctrader-frontend/*
sudo unzip -o /tmp/dist.zip -d /var/www/ctrader-frontend/
sudo chown -R anthony:www-data /var/www/ctrader-frontend sudo find /var/www/ctrader-frontend -type d -exec chmod 755 {} ; sudo find /var/www/ctrader-frontend -type f -exec chmod 644 {} ;
sudo nginx -t && sudo systemctl reload nginx