You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
readme += "If `.vix/vix_deps.cmake` exists, local registry dependencies can be included from CMake automatically.\n\n";
1022
-
1034
+
// ---------------------------
1035
+
// Tasks
1036
+
// ---------------------------
1023
1037
readme += "## Tasks\n\n";
1024
-
readme += "This template also defines default tasks in `vix.json`.\n\n";
1038
+
readme += "Run project tasks:\n\n";
1025
1039
1026
-
readme += "Run them with:\n\n";
1027
1040
readme += "```bash\n";
1028
1041
readme += "vix task <name>\n";
1029
1042
readme += "```\n\n";
1030
1043
1031
-
readme += "Examples:\n\n";
1044
+
readme += "Common tasks:\n\n";
1032
1045
readme += "```bash\n";
1033
-
readme += "vix task fmt\n";
1034
-
readme += "vix task check\n";
1035
-
readme += "vix task test\n";
1036
1046
readme += "vix task dev\n";
1047
+
readme += "vix task test\n";
1037
1048
readme += "vix task ci\n";
1038
1049
readme += "```\n\n";
1039
1050
1040
-
readme += "The generated app manifest includes tasks such as:\n\n";
1041
-
readme += "- `fmt`\n";
1042
-
readme += "- `check`\n";
1043
-
readme += "- `test`\n";
1044
-
readme += "- `dev`\n";
1045
-
readme += "- `ci`\n";
1046
-
readme += "- `release`\n";
1047
-
readme += "- `package`\n\n";
1048
-
1049
-
readme += "You can edit `vix.json` to customize commands, variables, environments, and task pipelines.\n\n";
1051
+
readme += "Edit `vix.json` to customize tasks and pipelines.\n\n";
1050
1052
1053
+
// ---------------------------
1054
+
// Configuration
1055
+
// ---------------------------
1051
1056
readme += "## Configuration\n\n";
1052
-
readme += "Vix applications use `.env` files for project configuration.\n";
1053
-
readme += "This lets you configure ports, database settings, logging, WebSocket options, and other runtime values without changing your C++ code.\n\n";
1054
1057
1055
-
readme += "### Project env file\n\n";
1056
-
readme += "Create a file at the project root:\n\n";
1057
-
readme += "```\n";
1058
-
readme += ".env\n";
1058
+
readme += "Vix uses `.env` files for configuration.\n\n";
1059
+
1060
+
readme += "Start by copying the example:\n\n";
1061
+
readme += "```bash\n";
1062
+
readme += "cp .env.example .env\n";
1059
1063
readme += "```\n\n";
1060
1064
1061
1065
readme += "Example:\n\n";
1062
1066
readme += "```env\n";
1063
-
readme += "SERVER_PORT=8081\n";
1067
+
readme += "SERVER_PORT=8080\n";
1064
1068
readme += "DATABASE_ENGINE=mysql\n";
1065
1069
readme += "DATABASE_DEFAULT_HOST=127.0.0.1\n";
1066
1070
readme += "DATABASE_DEFAULT_PORT=3306\n";
@@ -1071,24 +1075,17 @@ int main()
1071
1075
readme += "WAF_MODE=basic\n";
1072
1076
readme += "```\n\n";
1073
1077
1074
-
readme += "### Layered env files\n\n";
1075
-
readme += "Vix supports layered env files.\n";
1076
-
readme += "Depending on your environment, you can use files such as:\n\n";
1077
-
readme += "- `.env`\n";
1078
-
readme += "- `.env.local`\n";
1079
-
readme += "- `.env.production`\n";
1080
-
readme += "- `.env.production.local`\n\n";
1078
+
// ---------------------------
1079
+
// Code usage
1080
+
// ---------------------------
1081
+
readme += "## Using configuration in code\n\n";
1081
1082
1082
-
readme += "This makes it easy to separate local development and production configuration.\n\n";
1083
-
1084
-
readme += "### Using config in code\n\n";
1085
-
readme += "To use the project configuration, initialize and read it explicitly:\n\n";
0 commit comments