Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add steps for making swift run work better #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
14 changes: 9 additions & 5 deletions realdevicemap/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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::

Expand All @@ -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)
Expand Down