Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cut_major_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
echo "Java packages versions updated from $OLD_JAVA_VERSION to $NEXT_JAVA_VERSION"
### increase dependency of project to new version
echo "Updating project dependency to new version"
mvn versions:set-property -f project/standard/templates/web/pom.xml -Dproperty=mapstore-services.version -DnewVersion=$NEXT_JAVA_VERSION -DgenerateBackupPoms=false -DautoVersionSubmodules=true -Pprinting
mvn versions:set-property -f project/standard/templates/pom.xml -Dproperty=mapstore-services.version -DnewVersion=$NEXT_JAVA_VERSION -DgenerateBackupPoms=false -DautoVersionSubmodules=true -Pprinting
# Increase release minor version
echo "Updating project version to new version in package.json"
npm version minor --git-tag-version=false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/post_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
echo
echo "Restoring snapshot version tp $SNAPSHOT_VERSION"
mvn versions:set -DnewVersion=$SNAPSHOT_VERSION -DprocessAllModules -DgenerateBackupPoms=false -Pprinting,binary,printingbundle
mvn versions:set-property -f project/standard/templates/web/pom.xml -Dproperty=mapstore-services.version -DnewVersion=$SNAPSHOT_VERSION -DgenerateBackupPoms=false -DautoVersionSubmodules=true -Pprinting
mvn versions:set-property -f project/standard/templates/pom.xml -Dproperty=mapstore-services.version -DnewVersion=$SNAPSHOT_VERSION -DgenerateBackupPoms=false -DautoVersionSubmodules=true -Pprinting
npm version patch --git-tag-version=false
echo "Committing changes"
find . -name 'pom.xml' | xargs git add
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:

# Update project dependency
echo "updating project pom.xml dependency from mapstore packages to version: $JAVA_MODULES_NEW_VERSION"
mvn versions:set-property -f project/standard/templates/web/pom.xml -Dproperty=mapstore-services.version -DnewVersion=$JAVA_MODULES_NEW_VERSION -DgenerateBackupPoms=false -DautoVersionSubmodules=true -Pprinting
mvn versions:set-property -f project/standard/templates/pom.xml -Dproperty=mapstore-services.version -DnewVersion=$JAVA_MODULES_NEW_VERSION -DgenerateBackupPoms=false -DautoVersionSubmodules=true -Pprinting
# Update changelog
echo "Updating changelog"
update_changelog $LAST_MS_VERSION $NEW_MS_VERSION
Expand Down
2 changes: 2 additions & 0 deletions docs/developer-guide/developing.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ export INITIAL_ADMIN_PASSWORD='<your-dev-password>'
npm start
```

On Windows use `set INITIAL_ADMIN_PASSWORD=<your-dev-password>` (`cmd`) or `$env:INITIAL_ADMIN_PASSWORD='<your-dev-password>'` (PowerShell) instead of `export`.

You can login as `admin` to set-up new users and access to all the features reserved to `ADMIN` users. See [Initial Administrator Password](initial-admin-password.md) for details.

The database used by default in this mode is H2 on disk. You can find the files of the database in the directory `webapps/mapstore/` starting from your execution context. Check how to set-up database in the dedicated section of the documentation.
Expand Down
22 changes: 21 additions & 1 deletion docs/developer-guide/initial-admin-password.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,33 @@ The variable must be available in the environment of the Java process running Ma
INITIAL_ADMIN_PASSWORD: "${INITIAL_ADMIN_PASSWORD}"
```

- Local development (`npm start` runs the backend too, which inherits the shell environment):
- Tomcat on Windows (e.g. in `bin\setenv.bat`):

```bat
set INITIAL_ADMIN_PASSWORD=<your-strong-password>
```

- Local development (`npm start` runs the backend too, which inherits the shell environment). The same applies to MapStore projects created with the [project creation script](project-creation-script.md):

```sh
export INITIAL_ADMIN_PASSWORD='<your-dev-password>'
npm start
```

On Windows, set the variable in the same terminal before running `npm start`. In `cmd`:

```bat
set INITIAL_ADMIN_PASSWORD=<your-dev-password>
npm start
```

In PowerShell:

```powershell
$env:INITIAL_ADMIN_PASSWORD='<your-dev-password>'
npm start
```

Then log in with the user `admin` and the password you set.

## Security checks logged at start-up
Expand Down
2 changes: 1 addition & 1 deletion docs/developer-guide/project-creation-script.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ If you create a *standard* project, you can customize it editing **js/app.jsx**:
The following steps are:

* `npm install` to download dependencies
* `npm start` to test the project
* `npm start` to test the project. Set the `INITIAL_ADMIN_PASSWORD` environment variable first, otherwise no `admin` account is created and you cannot log in (see [Initial Administrator Password](initial-admin-password.md))
* `./build.sh` to build the full .war

## Create a new project type
Expand Down
Loading