Code Monkey home page Code Monkey logo

deploy_saleor's Introduction

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.

deploy_saleor's People

Contributors

thewhiterabbit avatar hamma2 avatar alta-atc avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.