Parallaxes / lucas_2025

Apache License 2.0
1 stars 0 forks source link

Live Quiz #3

Open Parallaxes opened 3 months ago

Parallaxes commented 3 months ago
  1. Erase existing environment (screen capture)

    Remove previous cloned repo && check website status. We run the command rm -rf nighthawk/ which recursively (-r) and forcibly (-f) removes (rm) the nighthawk directory and all of its subdirectories.

  2. Setup our working environment (git clone's)

    We run mkdir nighthawk after previously removing the directory to create a new nighthawk/ directory. We can then cd into it and run git clone https://github.com/Parallaxes/lucas_2025.git or whatever your personal git repo is to clone our updated git repo into the new nighthawk/ directory.

  3. Activate tools & version check (Ruby, Bundler, Python)

    We then cd into nighthawk/YourRepo (or nighthawk/lucas_2025.git) and run the activation script using .\activate.sh which installs our required dependencies. This was likely done previously for WSL users who did not have the rollback KASM users had to work with.

We'll then run the version checks ruby -v bundle -v and python --version

  1. Setup development environment (scripts/venv.sh)

    Here we start our virtual container environment using the premade venv.sh script in your repo (lucas_2025) with scripts/venv.sh. To run the virtual environment, we'll need to use the command source venv/bin/activate. We use a virtual container to protect our host system from catastrophic damage!

  2. Start server (code . and make)

    Here we open VS Code using code . and open a new terminal inside VS Code. We can then run the virtual environment here (just as a precaution) using the same source venv/bin/activate command, and finally run make to start our server. There should be a server address at the bottom of the server start prompt.

  3. Verify server

    If all goes well, we'll have a functioning server! We can verify this by ctrl + clicking the server address, and (hopefully) see our locally hosted website!

Parallaxes commented 3 months ago
  1. Erase environment image

Web Site image

Parallaxes commented 3 months ago
  1. Clone Repo image
Parallaxes commented 3 months ago

Activate Tools Step

root@ASOOSV2:~# ruby -v
ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux-gnu]
root@ASOOSV2:~# bundler -v
Bundler version 2.5.17
root@ASOOSV2:~# python --version
Python 3.10.12
root@ASOOSV2:~#
Parallaxes commented 3 months ago

Setup Environment for Project (WSL)

This command creates my virtual environment.

scripts/venv.sh

root@ASOOSV2:~/nighthawk/lucas_2025# ls
404.html  LICENSE   README.md      _config.yml  _layouts    _posts  assets  index.md    requirements.txt  venv
Gemfile   Makefile  README4YML.md  _includes    _notebooks  _sass   images  navigation  scripts
root@ASOOSV2:~/nighthawk/lucas_2025#
Parallaxes commented 3 months ago

Run Server

image

Parallaxes commented 3 months ago

Run Server Address

image