! MacOS/Windows is not supported !
Our local environment works only on Linux based OS. if you are able to modify the enviroment to be compatible with windows/macos please create MR containing CI tests.
- Install docker
- Docker post install steps - optional
Start local env
bash run.sh
Attaching to the web
container
docker exec -it -u www-data track_web_1 bash
composer install
yarn install
# dev env
yarn encore dev
# prod env
yarn encore production
cd /var/www/script/migration
composer install --no-dev
./vendor/bin/phinx migrate
Execute the following sql query, replace @some_condition@
with your conditions.
UPDATE `user`
SET `roles` = 'a:1:{i:0;s:10:"ROLE_ADMIN";}'
WHERE @some_condition@
- In order to use our development application, we need to manually add you as facebook app developer, please create an issue.
- Make sure you are using the facebook token from
.env.dist
- You have to manually set hostname
gps.test
to match your container ip. Then you must access the project via https://gps.test instead of the container IP. if you need different hostname - please create an issue/PR.
Example config in /etc/hosts
172.20.0.3 gps.test
If you use your own facebook application, then you need to fill your credentials in .env
file.
Our ElevationDiffReducer have "buffer" of 40 metres. Elevation accuracy:
- 31m - according to Singletrack
- 10m - according to gpsinformation.net