Giter VIP home page Giter VIP logo

tradescape.cash's Introduction

tradescape.cash

Prepare website

Docker was used to host this website. You may use your own preferred method.

  1. Install Docker: https://docs.docker.com/engine/install/
  2. Follow "Configuration" & "SSL/HTTPS" Apache Docker image instructions here: https://hub.docker.com/_/httpd/

Docker requires preparation of the following files before proceeding further:

httpd.conf - Required for SSL setup only (docker only).
server.crt - Requires public key. Generated using certbot. Use your own preferred certificate signing method.
server.key - Requires private key. Use your own preferred certificate signing method.

Running website - Linux

  1. Download source code into a preferred local directory.
  2. Place updated httpd.conf file in: /usr/local/apache2/conf/
  3. Place certificate files in: /usr/local/apache2/conf/
  4. Run website with one command:
    docker run -dit --name tradescape.cash -p 80:80 -p 443:443 -v "$PWD":/usr/local/apache2/htdocs/ -v /usr/local/apache2/conf/httpd.conf:/usr/local/apache2/conf/httpd.conf -v /usr/local/apache2/conf/server.crt:/usr/local/apache2/conf/server.crt -v /usr/local/apache2/conf/server.key:/usr/local/apache2/conf/server.key httpd:2.4

NOTE: When performing website source code updates and the source is updated on the host $PWD, the docker container volume bind mount will cause the container to automatically update the website content, no other action is required.

Docker image can run on any OS. Update your local path to reflect your local directory for source, httpd.conf file and certificate locations.

Example for Windows:

X:\where-your-source-is-located\ instead of $PWD
X:\path-to-httpd.conf-and-certs\conf\ instead of /usr/local/apache2/conf/

Other commands:

Stop website container
docker stop tradescape.cash

Start website container again, existing container
docker start tradescape.cash

Remove docker container, source code on host is untouched. Must stop before removing.
docker rm tradescape.cash

tradescape.cash's People

Contributors

bodane avatar

Watchers

cyan avatar  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.