Skip to content

Latest commit

 

History

History
89 lines (81 loc) · 3.75 KB

README.md

File metadata and controls

89 lines (81 loc) · 3.75 KB

Deploy Saleor

A bash script for Production Deployment of Saleor


Description

This script set intends to install and setup specific dependancies, Saleor, and Saleor Dashboard for a production environment. It is assumed that you have already installed Nginx, PHP 7.4, and have some general understanding of the settings.py file and how to setup email outside of this script. Email setup will be added in future versions of this script. This is the initial public release for alpha testing on Ubuntu 20.04 systems.


Install & Dependancy List

deploy-saleor.sh installs...

  • Saleor
  • build-essential
  • python3-dev
  • python3-pip
  • python3-cffi
  • python3-venv
  • gcc
  • libcairo2
  • libpango-1.0-0
  • libpangocairo-1.0-0
  • libgdk-pixbuf2.0-0
  • libffi-dev
  • shared-mime-info
  • nodejs
  • npm
  • postgresql
  • postgresql-contrib

deploy-dashboard.sh installs...


Instructions

  1. Login as a sudoer and clone this repository into the home directory of the sudo user that will be installing Saleor, and Saleor Desktop.
  2. git clone https://github.com/thewhiterabbit/Deploy_Saleor.git
    
  3. With sudo, from the home directory, run the deploy.sh script.
  4. sudo bash Deploy_Saleor/deploy.sh
    
  5. Run certbot to setup SSL.
  6. sudo certbot --nginx -d your.domain
    
  7. Replace http with https in the following files:
  8. /var/www/your.domain/dashboard/index.html
    /var/www/your.domain/dashboard/dashboard.randomstring.js
    
Note: Substitute /dashboard/ with the URI you entered durring the setup script.

Please report any errors as an issue so that they can be addressed.

NOTE: If you have already installed & secured PostgreSQL you may get errors because the script may not be able to connect to `psql` and create the required database and user account.


Contribution

If you want to contribute to this script set, please clone the repository, make your desired upgrades, updates, or fixes, and submit a pull request with documentation of your upgrades, updates, or fixes. Your contributions will be added to a list appended to this readme file and are very much appreciated.

Awesome Contributors


Disclaimer

Although I have done my best to be as thourogh as I am capable of, there may be some overlooked concerns for security invloving the virtual environment , Emperor, or other aspects that may be currently outside the contributors' scope of knowledge. This script set is provided without gurarantee.