Commit 7c5d420
Manus AI
fix: Update install command to create console environment files
This commit updates the install-fleetbase command to create/update the
console environment files (.env.development and .env.production) before
starting Docker containers.
## Changes
- Create console/environments/.env.development with HTTP configuration
- Create console/environments/.env.production with HTTPS configuration
- Both files include API_HOST, SOCKETCLUSTER settings, and OSRM_HOST
- Production file includes API_SECURE=true flag
## Rationale
Production builds no longer use fleetbase.config.json for runtime
configuration. Instead, they rely on .env.production files that are
baked into the build. This ensures proper configuration for both
development and production environments.
## Files Created
1. console/environments/.env.development
- HTTP API endpoint
- SOCKETCLUSTER_SECURE=false
- Uses provided host value
2. console/environments/.env.production
- HTTPS API endpoint
- SOCKETCLUSTER_SECURE=true
- API_SECURE=true
- Uses provided host value
This ensures that production builds have the correct configuration
embedded at build time, while development continues to use runtime
configuration via fleetbase.config.json.1 parent 9a9c1a6 commit 7c5d420
1 file changed
Lines changed: 33 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
818 | 818 | | |
819 | 819 | | |
820 | 820 | | |
821 | | - | |
| 821 | + | |
822 | 822 | | |
823 | 823 | | |
824 | 824 | | |
| |||
832 | 832 | | |
833 | 833 | | |
834 | 834 | | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
835 | 867 | | |
836 | 868 | | |
837 | 869 | | |
| |||
0 commit comments