gitea/cmd
kakwa c5a9be9115 Using a tmp dir to generate db and repo dumps
Using a tmp dir makes gogs dump more robust to concurrent runs.

It also permits an easier cleaning of the tmp files (gogs-db.sql and
gog-repo.zip) by just removing the tmp dir.

As a side effect, it partially fix bugs on workdir.
Previously, 'gogs dump' created the archives in the current directory,
and tried to include these archives from the directory where the
gogs binary lies.
ex: if gogs binary is in /usr/bin/gogs, and gogs dump is run from /tmp/,
/tmp/gog-repo.zip is created, but gogs dump tried to include
/usr/bin/gogs-repo.zip.
2015-11-28 14:07:51 +01:00
..
cert.go fix api broken 2015-11-15 17:07:44 -05:00
cert_stub.go cmd: code fix for #905 2015-02-08 21:26:14 -05:00
cmd.go fix api broken 2015-11-15 17:07:44 -05:00
dump.go Using a tmp dir to generate db and repo dumps 2015-11-28 14:07:51 +01:00
serve.go print error log to client side when dev mode 2015-11-23 22:33:24 -05:00
update.go fix api broken 2015-11-15 17:07:44 -05:00
web.go #1944 Drop /org/ URL path prefix in organization home page 2015-11-24 19:14:00 -05:00