Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated instructions for running locally #346

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,22 @@ This site is written using [Jekyll](https://jekyllrb.com/), a static site genera
* `export CSHPUBSITE_S3_URL="https://s3.csh.rit.edu"`
3. `bundle exec jekyll serve`

The site should now serve locally at `localhost:4000`, and auto-build when you change/create files in the repo!
Mstrodl marked this conversation as resolved.
Show resolved Hide resolved
The site should now serve locally at `localhost:8080`, and auto-build when you change/create files in the repo!
Mstrodl marked this conversation as resolved.
Show resolved Hide resolved

### Running in a container

To run this site in a container, make sure you have either [Podman](https://podman.io) or [Docker](https://docker.com) installed.

First, build the container with the following command
```
podman build -t public-site .
```

Then, run the container with the following command
```
podman run -p 8080:80 public-site:latest
mxmeinhold marked this conversation as resolved.
Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, can you make this podman run -p 8080:80 -it public-site? That way, people don't get stuck when ctrl-c doesn't work.

```
The site should now serve locally at `localhost:8080`. Note that it will not update when you make changes. You will have to stop the container and rebuild it to see your changes

## Contributing

Expand Down