Our application should now be fully functional once we add the preceding code! As with the database section of our Crime Map application, this bit is the most delicate as we haven't been able to test the DBHelper
code locally, and we'll have to debug it directly on the VPS. However, we're confident, from our MockDBHelper
class, that all our application logic is working, and if the new database code holds up, everything else should go as expected. Let's push our code to the server and test it out.
Locally, run the following commands in your waitercaller
directory:
git add . git commit -m "DBHelper code" git push origin master
On your VPS, change to the WaiterCaller
directory, pull the new code, and restart Apache, as follows:
cd /var/www/waitercaller git pull origin master
Now, create the production config
file using nano by running the following command:
nano config.py
Type the following into the new config.py
file, substituting the IP address in base_url...