| @@ -28,15 +28,17 @@ CMS per portali captive: gestione di card informative, gallerie, flip-book e con | |||||
| **Sviluppo:** | **Sviluppo:** | ||||
| ```bash | ```bash | ||||
| git clone https://git.afasystems.it/pollutri/ProgettoInterceptoCasaDellaScuola.git | |||||
| cd ProgettoInterceptoCasaDellaScuola | |||||
| npm install | npm install | ||||
| npm run build | |||||
| npm run dev | npm run dev | ||||
| ``` | ``` | ||||
| Con `BASE_PATH = '/cards'` (default) apri [http://localhost:3000/cards](http://localhost:3000/cards) (portale pubblico) e [http://localhost:3000/cards/admin](http://localhost:3000/cards/admin) (amministrazione). Le URL "nude" `/` e `/admin` reindirizzano automaticamente a quelle prefissate. Con `BASE_PATH = ''` l'app gira sulla radice (`/` e `/admin`). | Con `BASE_PATH = '/cards'` (default) apri [http://localhost:3000/cards](http://localhost:3000/cards) (portale pubblico) e [http://localhost:3000/cards/admin](http://localhost:3000/cards/admin) (amministrazione). Le URL "nude" `/` e `/admin` reindirizzano automaticamente a quelle prefissate. Con `BASE_PATH = ''` l'app gira sulla radice (`/` e `/admin`). | ||||
| **Produzione:** | **Produzione:** | ||||
| ```bash | ```bash | ||||
| npm run build | |||||
| npm start | |||||
| /conf/etc/rc.d/rc.custom start | |||||
| ``` | ``` | ||||
| > **Server offline:** la macchina di produzione non ha accesso a internet. NON eseguire `npm install` lì. Installa le dipendenze su una macchina con internet (stesso OS, Linux), poi copia l'intera cartella `node_modules` sul server insieme al progetto buildato. Sul server basta `npm run build` (se `node_modules` è presente) + `npm start`. | > **Server offline:** la macchina di produzione non ha accesso a internet. NON eseguire `npm install` lì. Installa le dipendenze su una macchina con internet (stesso OS, Linux), poi copia l'intera cartella `node_modules` sul server insieme al progetto buildato. Sul server basta `npm run build` (se `node_modules` è presente) + `npm start`. | ||||