feat: use local versioning to allow working in git

This commit is contained in:
Niklas 2023-10-30 02:18:24 +01:00
parent 5604514721
commit 2a7eb35a74
6 changed files with 11 additions and 1 deletions

3
.gitignore vendored
View File

@ -17,3 +17,6 @@ atomcms/logs/*
!atomcms/cache/.gitkeep !atomcms/cache/.gitkeep
!atomcms/storage/.gitkeep !atomcms/storage/.gitkeep
!atomcms/logs/.gitkeep !atomcms/logs/.gitkeep
*.env
nitro/*.json
!example-*

View File

@ -21,10 +21,17 @@ This setup installs a complete local setup. Connecting externally requires editi
| Nitro Client | http://127.0.0.1:3080 | game.example.com | | Nitro Client | http://127.0.0.1:3080 | game.example.com |
```sql ```sql
UPDATE emulator_settings SET `value`='*.mc8051.de' WHERE `key`='websockets.whitelist'; UPDATE emulator_settings SET `value`='*.example.com' WHERE `key`='websockets.whitelist';
``` ```
## Build ## Build
0. copy necessary files to work locally
The following command searches for all files starting with `example-`, copies the file and remove the `example-` prefix. If you don't have access to the find command, you can do it manually.
```bash
find . -type f -name 'example-*' -exec sh -c 'cp -rf "$0" "${0/example-/}"' {} \;
```
1. Download the default assets 1. Download the default assets
> The `&& \` is used to combine multiple commands into a single line in a Unix-like command shell. By using && \, the two commands are executed sequentially and only if the first command succeeds. If the first command fails, the second command will not be executed, saving you from potential errors. > The `&& \` is used to combine multiple commands into a single line in a Unix-like command shell. By using && \, the two commands are executed sequentially and only if the first command succeeds. If the first command fails, the second command will not be executed, saving you from potential errors.

View File