- Ubuntu 20.04.1
- Python 3.8
touch ~/.aws/credentials
- should include following information in
credentials
file
[default]
aws_access_key_id = XXXXXXXXXXXXXXXXXXXX
aws_secret_access_key = YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
cd ~
pip install virtualenv
virtualenv venv
source ~/venv/bin/activate
apt-get install apache2
apt-get install libapache2-mod-wsgi-py3
cd /etc/apache2/sites-available/
touch Amazon-SP-API.conf
WSGIPythonPath /home/season/venv/lib/python3.8/site-packages
<VirtualHost *:80>
ServerName season.coder.tw
WSGIDaemonProcess Amazon-SP-API threads=5
WSGIScriptAlias / /var/www/html/Amazon-SP-API/app.wsgi
<Directory /var/www/html/Amazon-SP-API>
WSGIProcessGroup Amazon-SP-API
WSGIApplicationGroup %{GLOBAL}
WSGIScriptReloading On
Order deny,allow
Allow from all
</Directory>
</VirtualHost>
a2ensite Amazon-SP-API.conf
service apache2 reload
cd Amazon-SP-API
pip install -r requirements.txt
export FLASK_APP=app.py
python -m flask run
selling-partner-api-docs
Selling Partner API Developer Guide