From e83631ce7c6efdc6fa6767d5a92d1626713b9f35 Mon Sep 17 00:00:00 2001 From: madBeavis <57059024+madBeavis@users.noreply.github.com> Date: Sat, 27 Aug 2022 15:58:08 -0600 Subject: [PATCH] Add steps for making swift run work better 1. add note about bash being distro specific 2. add note about restarting console 3. add post install steps for config file --- realdevicemap/installation.rst | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/realdevicemap/installation.rst b/realdevicemap/installation.rst index 4f0709a..8fa3c75 100644 --- a/realdevicemap/installation.rst +++ b/realdevicemap/installation.rst @@ -93,8 +93,11 @@ RDM Setup Process using SwiftEnv (Ubuntu only) echo 'export SWIFTENV_ROOT="$HOME/.swiftenv"' >> ~/.bash_profile echo 'export PATH="$SWIFTENV_ROOT/bin:$PATH"' >> ~/.bash_profile echo 'eval "$(swiftenv init -)"' >> ~/.bash_profile + restart your console to have changes take effect -- Instll RealDeviceMap dependencies:: + Note: depending on your distrobution, you may need to utilize `bashrc` instead of `bash_profile` + +- Install RealDeviceMap dependencies:: sudo apt-get update sudo apt-get install -y libssl-dev libcurl4-openssl-dev libmysqlclient-dev uuid-dev imagemagick mysql-client-5.7 @@ -105,6 +108,11 @@ RDM Setup Process using SwiftEnv (Ubuntu only) git clone https://github.com/RealDeviceMap/RealDeviceMap cd RealDeviceMap + +- Post install steps + + cp ./resources/config/default.json.example ./resources/config/default.json + edit default.json file as appropriate - Install required Swift version:: @@ -115,10 +123,6 @@ RDM Setup Process using SwiftEnv (Ubuntu only) - Start RDM with default settings:: swift run - - - Remember to add Enviroment variables as needed:: - - DB_PASSWORD=x swift run - Visit http://localhost:9000 (or whatever the server ip/hostname to your VPN is) and create an admin account with the access-token you see in the output of that command - The map will start at 0,0 (blue ocean)