Merge pull request #42 from apache/fix_command_example
fix the example command
diff --git a/README.md b/README.md
index 701e7fe..4891090 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,7 @@
## Building the site
The site is written in [Markdown][9] syntax and built into a static site using [Pelican][1]. The site is re-built automatically by [ASF Buildbot][5] on every push to master branch and the result can be previewed at [lucene.staged.apache.org][6]. Build success/failure emails are sent to [commits@lucene.apache.org][7] mailing list. Read more about the mechanics behind auto building in [INFRA Confluence][8].
-
+
If the staged site looks good, simply merge the changes to branch `production` and the site will be deployed in a minute or two. Note that simple edits can also be done directly in the GitHub UI rather than clone -> edit -> commit -> push.
> **IMPORTANT**: Please never commit directly to `production` branch. All commits should go to master, and then merge master to production. Note that it **is** possible to make a Pull Request for the merge from `master-->production`. If you do so, please merge using a merge commit rather than a squash merge.
@@ -17,7 +17,7 @@
# Usage: ./build.sh [-l] [<other pelican arguments>]
# -l Live build and reload source changes on localhost:8000
# --help Show full help for options that Pelican accepts
- ./build -l
+ ./build.sh -l
Now go to <http://localhost:8000> to view the beautiful Lucene web page served from your laptop with live-preview of updates :)
diff --git a/build.sh b/build.sh
index da0c3fb..b1bc212 100755
--- a/build.sh
+++ b/build.sh
@@ -41,11 +41,11 @@
exit 2
fi
if [[ -d env ]]; then
- source env/bin/activate && pip -q install --upgrade pip && pip -q install -r requirements.txt >/dev/null
+ source env/bin/activate && pip3 -q install --upgrade pip && pip3 -q install -r requirements.txt >/dev/null
fi
if [[ ! $(pelican -h 2>/dev/null) ]]; then
echo "No pelican installed, attempting install"
- python3 -m venv env && source env/bin/activate && pip -q install --upgrade pip && pip install -r requirements.txt
+ python3 -m venv env && source env/bin/activate && pip3 -q install --upgrade pip && pip3 install -r requirements.txt
if [[ $? -gt 0 ]]; then
echo "Failed pelican install, exiting."
exit 2
@@ -61,4 +61,4 @@
echo "Building Lucene site."
echo "To build and serve live edits locally, run this script with -l argument. Use -h for help."
pelican $@
-fi
\ No newline at end of file
+fi