React Exercise

Deploy Artifacts (GitHub)

You can find the artifacts for this project at the React Tic Tac Toe Tutorial artifacts GitHub repo

Instructions

  1. Configure NGINX to serve the files that make up the react-tic-tac-toe-build-artifacts project

Questions & Answers

What did the NGINX configuration need to contain to properly serve the artifacts?

CLICK FOR ANSWER
server {
    listen 80;
    server_name localhost;

    location / {
        root /home/student/react-tic-tac-toe-build-artifacts;
        index index.html;
    }
}

What command was used to reload NGINX after a change was made to the configuration file?

CLICK FOR ANSWER
sudo nginx -s reload