# Zip Food Handler Marketing Page

## Deployment Procedure

- Deployment is automated via webhooks.

1.  push to Github master branch
2.  view progress at https://webhook.altametrics.com/s-log-list.php could take a few mins to load job.

## Running Locally

### 1. Install Jekyll

Before running your Jekyll app, ensure you have Ruby and Bundler installed on your system.

#### Install Ruby

##### On Linux:

```bash
sudo apt install ruby-full
```

##### On macOS:

```bash
brew install ruby
```

#### Install Jekyll and Bundler

Once Ruby is installed, install Jekyll and Bundler globally:

```bash
gem install bundler jekyll
```

---

### 2. Navigate to Your Jekyll Project

Open your terminal and navigate to the directory containing your Jekyll project:

```bash
cd /path/to/your/jekyll/project
```

---

### 3. Install Project Dependencies

If your project has a `Gemfile`, install its dependencies using Bundler:

```bash
bundle install
```

If there is no `Gemfile`, you can skip this step.

---

### 4. Build and Serve the Site Locally

Use the following command to build and serve the site:

```bash
bundle exec jekyll serve
```

If you don’t have a `Gemfile`, use:

```bash
jekyll serve
```

---

### 5. Access Your Local Jekyll Site

After running the server, your site will be available at:

```
http://localhost:4000
```

---

### Common Options for `jekyll serve`

- **Change Port:** Run the server on a custom port:
  ```bash
  bundle exec jekyll serve --port 8080
  ```
- **Enable Watch Mode:** By default, Jekyll watches for file changes. To explicitly enable it:
  ```bash
  bundle exec jekyll serve --watch
  ```
- **Disable Incremental Build:** If you encounter issues, disable incremental builds:
  ```bash
  bundle exec jekyll serve --no-incremental
  ```

---

### 6. Stop the Server

To stop the server, press `Ctrl+C` in the terminal.

---

### Troubleshooting

- **Command Not Found:** Ensure Ruby is installed and added to your system’s PATH.
- **Gem Dependency Issues:** Run `bundle install` to resolve missing gems.
- **Permissions Error:** Run the commands with `sudo` if necessary, but avoid using `sudo` for `bundle install` unless required.

---

## --- Data Prefix Values for i18n translation ---

# t = text - should be translated

# i = image - an image file

# v = value - a numeric, currency, date value

# p = parameter - a non-displayed value

---

## --- S3_Website Settings ---

# To configure cache control you have to include the S3_key_prefix in the path.

cache*control:
"websites-production/hubworks-com/js/*": no-cache
"websites-production/hubworks-com/css/_": no-cache
"websites-production/hubworks-com/fonts/_": public, max-age=31536000
"websites-production/hubworks-com/fonts/font-awesome/fonts/_": public, max-age=31536000
"websites-production/hubworks-com/assets/_": public, max-age=31536000
"websites-production/hubworks-com/assets/video/_": public, max-age=31536000
"websites-production/hubworks-com/assets/pdf/_": public, max-age=31536000
"websites-production/hubworks-com/assets/images/\_": public, max-age=31536000
"\*": no-cache

# Redirects must be in the format below

redirects:
app-redirect/index.html: https://sso.hubworks.com/hwsso/#/login/
terms-of-use/index.html: https://hubworks.com/legal/legal/terms-of-use/

---

## --- Other Notes ---

# .image_optim.yml contains the image compression settings used by $ rake optimize
