01-11-2023

Sprint Planning

Side notes

PHP Setup

Docs required to setup local-ej-setup: https://github.com/ethical-jobs/local-ej-env

Install php

Follow docs: https://getgrav.org/blog/macos-sonoma-apache-multiple-php-versions

Change port

Change the port default, otherwise, it would run at port 8080

sudo nano /opt/homebrew/etc/httpd/httpd.conf
brew services stop httpd 
brew services start httpd 
brew services restart httpd

Change PATH to run locally ej tool

ej tool can be called running ./bin/ej COMMAND

To create a shortcut, you can add to your PATH the following:

export PATH="PATH_TO_REPOSITORY/local-ej-env/bin/ej:$PATH"

Install API repos

It's necessary to install all the following repos:

api-alerts
api-app
api-ats
api-autopost
api-cms
api-files
api-metabase-wrapper
api-location
api-auth
api-jobseekers
api-seek-scraper
admin-autoposters
authentication

Highly recommended to have a script to download them. To update at least:

#!/bin/bash

# Source: https://gist.github.com/douglas/1287372
# store the current dir
CUR_DIR=$(pwd)

# Let the person running the script know what's going on.
echo "\n\033[1mPulling in latest changes for all repositories...\033[0m\n"

# Find all git repositories and update it to the master latest revision
for i in $(find . -name ".git" | cut -c 3-); do
    echo "";
    echo "\033[33m"+$i+"\033[0m";

    # We have to go to the .git parent directory to call the pull command
    cd "$i";
    cd ..;

    # finally pull
    git pull origin master;

    # lets get back to the CUR_DIR
    cd $CUR_DIR
done

echo "\n\033[32mComplete!\033[0m\n"