Skip to content

AnthonyHaye/ctrader-frontend

Repository files navigation

React + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template. To add it, see this documentation.

Expanding the ESLint configuration

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)

1) rebuild propre

npm run build

2) empaqueter pour éviter les surprises de PowerShell avec les wildcards

Compress-Archive -Path .\dist* -DestinationPath .\dist.zip -Force

3) envoyer l’archive

scp .\dist.zip anthony@192.168.1.35:/tmp/dist.zip

B) Sur le serveur (Ubuntu)

1) repartir de zéro dans le dossier web

sudo rm -rf /var/www/ctrader-frontend/*

2) décompresser le build (cela recrée /assets et index.html exactement)

sudo unzip -o /tmp/dist.zip -d /var/www/ctrader-frontend/

3) droits corrects pour Nginx

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 {} ;

4) recharger nginx

sudo nginx -t && sudo systemctl reload nginx

About

Projet de journal de tradding. Dont le backend est ctrader stack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published