Compare commits

...

7 Commits

Author SHA1 Message Date
henry.chen
4f92e0d619 chore(release): 2.1.15 2022-09-28 19:00:36 +08:00
henry.chen
3a8f7d120b chore: rm dns with cgo 2022-09-28 19:00:26 +08:00
Deepzz
cf0a897ad0 chore(app.yml): default db use sqlite 2022-09-28 18:59:28 +08:00
henry.chen
418b604946 chore(release): 2.1.14 2022-09-28 18:20:41 +08:00
henry.chen
b93c320987 fix: cgo and sqlite build in alpine image closed #28 2022-09-28 18:20:38 +08:00
henry.chen
b24f7c0666 chore(release): 2.1.13 2022-09-27 10:50:22 +08:00
Deepzz
efe80fbc6b Update feedTpl.xml 2022-09-21 09:47:50 +08:00
5 changed files with 15 additions and 5 deletions

View File

@@ -2,6 +2,17 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### [2.1.15](https://github.com/eiblog/eiblog/compare/v2.1.14...v2.1.15) (2022-09-28)
### [2.1.14](https://github.com/eiblog/eiblog/compare/v2.1.13...v2.1.14) (2022-09-28)
### Bug Fixes
* cgo and sqlite build in alpine image closed [#28](https://github.com/eiblog/eiblog/issues/28) ([b93c320](https://github.com/eiblog/eiblog/commit/b93c320987a936db6e5ca50c547022de9ab9a0f1))
### [2.1.13](https://github.com/eiblog/eiblog/compare/v2.1.12...v2.1.13) (2022-09-27)
### [2.1.12](https://github.com/eiblog/eiblog/compare/v2.1.11...v2.1.12) (2022-08-09) ### [2.1.12](https://github.com/eiblog/eiblog/compare/v2.1.11...v2.1.12) (2022-08-09)

View File

@@ -1,7 +1,7 @@
appname: eiblog appname: eiblog
database: database:
driver: postgres driver: sqlite
source: host=localhost port=5432 user=postgres dbname=eiblog sslmode=disable password=MTI3LjAuMC4x source: ./db.sqlite
eshost: eshost:
eiblogapp: eiblogapp:
mode: mode:

View File

@@ -21,7 +21,6 @@ services:
- elasticsearch - elasticsearch
- mongodb - mongodb
environment: environment:
- GODEBUG=netdns=cgo
- RUN_MODE=prod - RUN_MODE=prod
ports: ports:
- 127.0.0.1:9000:9000 - 127.0.0.1:9000:9000

View File

@@ -20,7 +20,7 @@ mkdir -p ./bin
# build demo app # build demo app
for file in pkg/core/*; do for file in pkg/core/*; do
app="$(basename $file)"; app="$(basename $file)";
CGO_ENABLED=0 go build -tags prod -o bin/backend "./cmd/$app" go build -tags prod -ldflags '-extldflags "-static"' -o bin/backend "./cmd/$app"
# docker image # docker image
docker buildx build --platform "$_platform" \ docker buildx build --platform "$_platform" \
-f "build/package/$app.Dockerfile" \ -f "build/package/$app.Dockerfile" \

View File

@@ -15,7 +15,7 @@
<comments>https://{{$.Host}}/post/{{.Slug}}.html#comments</comments> <comments>https://{{$.Host}}/post/{{.Slug}}.html#comments</comments>
<guid>https://{{$.Host}}/post/{{.Slug}}.html</guid> <guid>https://{{$.Host}}/post/{{.Slug}}.html</guid>
<description> <description>
<![CDATA[<blockquote>{{.Content}}<p>本文链接:<a href="https://{{$.Host}}/post/{{.Slug}}.html">https://{{$.Host}}/post/{{.Slug}}.html</a><a href="https://{{$.Host}}/post/{{.Slug}}.html#comments">参与评论 »</a></p>]]> <![CDATA[{{.Content}}<p>本文链接:<a href="https://{{$.Host}}/post/{{.Slug}}.html">https://{{$.Host}}/post/{{.Slug}}.html</a><a href="https://{{$.Host}}/post/{{.Slug}}.html#comments">参与评论 »</a></p>]]>
</description> </description>
<pubDate>{{dateformat .CreatedAt "Mon, 02 Jan 2006 15:04:05 -0700"}}</pubDate> <pubDate>{{dateformat .CreatedAt "Mon, 02 Jan 2006 15:04:05 -0700"}}</pubDate>
</item> </item>