mirror of
https://github.com/foambubble/foam-template.git
synced 2025-06-07 20:08:54 +00:00
add changes
This commit is contained in:
parent
812bdb754b
commit
d352d8da48
7 changed files with 49 additions and 2 deletions
6
.vscode/settings.json
vendored
6
.vscode/settings.json
vendored
|
@ -4,7 +4,11 @@
|
|||
"editor.overviewRulerBorder": false,
|
||||
"editor.lineHeight": 24,
|
||||
"[markdown]": {
|
||||
"editor.quickSuggestions": true
|
||||
"editor.quickSuggestions": {
|
||||
"comments": "on",
|
||||
"strings": "on",
|
||||
"other": "on"
|
||||
}
|
||||
},
|
||||
"files.defaultLanguage": "markdown",
|
||||
"files.exclude": {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
FROM jekyll/jekyll
|
||||
Label MAINTAINER Amir Pourmand
|
||||
WORKDIR /srv/jekyll
|
||||
ADD publish/Gemfile /srv/jekyll/
|
||||
ADD Gemfile /srv/jekyll/
|
||||
RUN bundle install
|
|
@ -1 +1,5 @@
|
|||
FILE=Gemfile.lock
|
||||
if [ -f "$FILE" ]; then
|
||||
rm $FILE
|
||||
fi
|
||||
docker build -t "foam:Dockerfile" -f publish/Dockerfile .
|
|
@ -1,3 +1,7 @@
|
|||
FILE=Gemfile.lock
|
||||
if [ -f "$FILE" ]; then
|
||||
rm $FILE
|
||||
fi
|
||||
docker run --rm -v "$PWD:/srv/jekyll/" -p "8080:8080" \
|
||||
-it foam:Dockerfile bundler \
|
||||
exec jekyll serve --watch --port=8080 --host=0.0.0.0
|
7
publish/dockerhub_run.sh
Executable file
7
publish/dockerhub_run.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
FILE=Gemfile.lock
|
||||
if [ -f "$FILE" ]; then
|
||||
rm $FILE
|
||||
fi
|
||||
docker run --rm -v "$PWD:/srv/jekyll/" -p "8080:8080" \
|
||||
-it amirpourmand/foam-template bundler \
|
||||
exec jekyll serve --watch --port=8080 --host=0.0.0.0
|
28
readme.md
28
readme.md
|
@ -22,6 +22,34 @@ To learn more about how to use **Foam**, read the [Recipes](https://foambubble.g
|
|||
|
||||
And remember that you can always join our [Foam community on Discord](https://foambubble.github.io/join-discord/g)!
|
||||
|
||||
## Github Pages
|
||||
|
||||
In order to use Github Pages, rename your project name to `username.github.io` then go to `Settings` and from there select `Pages`, change source to `master` and save!
|
||||
|
||||
## Docker Usage
|
||||
|
||||
First, install docker using [this](https://docs.docker.com/get-docker/).
|
||||
|
||||
### Using Prebuilt Image (Dockerhub)
|
||||
|
||||
If you don't want to build the image and just want to run the website using built image (Recommended):
|
||||
```bash
|
||||
publish/dockerhub_run.sh
|
||||
```
|
||||
|
||||
### Build Docker image locally
|
||||
But if you want to to build your image locally, you can use
|
||||
```bash
|
||||
publish/docker_build.sh
|
||||
```
|
||||
Then to run the image locally, use:
|
||||
```bash
|
||||
publish/docker_run
|
||||
```
|
||||
|
||||
|
||||
|
||||
> Note that if you can not run the image and you come into error which says there is some problem with some Gems, just remove `Gemfile.lock`. Most probably, your error will be solved.
|
||||
## Using Foam
|
||||
|
||||
We've created a few Bubbles (Markdown documents) to get you started.
|
||||
|
|
Loading…
Add table
Reference in a new issue