Git Product home page Git Product logo

ghostproxy's Introduction

Deploying Another Code Body via a CI/CD Pipeline

We'll be using ghost.org as an example

Steps

Ghost Installation

Things we wished we knew

Beginning Steps

  • make a directory to store this and go into that directory
  • type curl https://ghost.org > index.html
    • this will copy the entire html code body onto your machine
    • type live-server to see it hosted locally on your machine at http://localhost:8080
      • if live-server is not running, install it via an npm package or through the marketplace on your IDE. this will spin up the app on your local machine and detects changes automatically
  • move up a level from that directory and make another folder. something like ghostProxy and into that folder.
    • create a folder called proxy
    • create these files on the same level as proxy: .env, application.properties
    • go into the public folder and create a file called index.js
    • copy what we have from index.js into yours
  • in terminal, type npm install
    • type in npm install express superagent
  • go back to the proxy folder and create a new file called index.html
    • copy everything from our index.html into your index.html Landing Page
  • navigate to localhost:8080 and type in the url for ghost.org. There will be a forbidden error with Ghost: Doesn't work with Ghost!
    • if you type in another site like cnn.com, it will work :D Works with CNN!

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.