-
Notifications
You must be signed in to change notification settings - Fork 0
DigitalOcean Deployment
- A DigitalOcean account - Using this link will grant $10 in credit, enough for running your server for up to 2 months.
- A Google Maps API key
- A new Pokemon Club account
Create a Droplet in your DigitalOcean control panel with Ubuntu 16.04, any Droplet size will work.
Check the "User Data" box lower on the page and enter the following:
#!/bin/bash
apt-get -y update
apt-get -y install git nodejs npm python-pip nodejs-legacy python-dev
git clone -b develop https://github.com/PokemonGoMap/PokemonGo-Map.git
cd PokemonGo-Map/
pip install -r requirements.txt
npm install
npm install -g grunt-cli
npm install node-sass
grunt build
python ./runserver.py -u [USERNAME] -p [PASSWORD] -st 10 -k "[GMAPS API KEY]" -l "[LOCATION]" -H 0.0.0.0 -P 80
Important: Be sure to replace [USERNAME]
, [PASSWORD]
, [API Key]
, and [LOCATION]
with your Pokemon Trainers Club Username and Password, your Google Maps API Key, and your location (Latitude and Longitude), respectively. You will be able to change locations later on the site.
Once you have that, create your Droplet. Setup will take a few minutes initially, but once it's done your map will be accessible at http://[YOURDROPLET]/
, replacing that of course with your Droplet's IP address.
On the first boot the server will start automatically so this step isn't necessary, however if you have to restart the Droplet for any reason, you can start PoGoMap with the following two commands:
cd /PokemonGo-Map/
python runserver.py -u [USERNAME] -p [PASSWORD] -st 10 -k [Google Maps API key] -l "[LOCATION]" -H 0.0.0.0 -P 80
This process will be terminated upon logout, to run it in the background simply append &
to the end. See this DigitalOcean tutorial for more information on background processes.
Credit: JonahAragon
Note; as per the 403 error Wiki page Digital Ocean may now be a blocked provider.