Installing the application on your Server
- Navigate to the home directory by typing: cd home
- Create a directory using the following command: mkdir eventapp (you can use a different name if you prefer)
- Navigate to the folder you just created, type: cd eventapp
Creating a Python Virtual Environment​
- Execute the following command: python3 -m venv eventenv
- Now type: source eventenv/bin/activate
- Create another directory to place your files in with the following command: mkdir event-platform
Extract the Zipped Folder
- Using a GUI tool like WinSCP or Similar login to your server and navigate to the app folder​
- Drag the Zip file you purchased from CodeCanyon into the "event-platform" folder
- If you don't have the zip/unzip utility installed on your server run the following command sudo apt-get install unzip
- Using the SSH Command line tool again, extract the compressed files with the following command: unzip filename.zip
Update The .env File
- Locate the .env file in the settings directory (event-platform/app/.env)
- Populate the fields outlined in red on in your .env file.
- Save and close the file
Enter the following commands in SSH to complete setup
- Navigate to your project root ("home/eventapp/event-platform")
- pip install -r requirements.txt
- pip install gunicorn
- sudo systemctl daemon-reload
- sudo systemctl start gunicorn.socket
- sudo systemctl enable gunicorn.socket
- Execute the following: python manage.py migrate
- Python manage.py crontab add
- Sudo reboot