Commit Graph

15 Commits

Author SHA1 Message Date
Brad Fitzpatrick 8dc06bd49c App Engine: +build hide restart_unix.go
Otherwise won't deploy on App Engine.

Change-Id: I24df0e20c03eb5864e2a791671be88e039ca63b6
2013-03-14 19:43:25 -07:00
Brad Fitzpatrick f6861b71e2 android, osutil: the the child process its Android-specific cache directory
Change-Id: I1161afd4ab30eb02e0e5b41c3d73a0c94f59c200
2013-01-27 13:24:50 -08:00
Brad Fitzpatrick 6ca0efac8c camlistored: much better sqlite support, by default, and help/docs/hints 2013-01-10 16:16:10 -08:00
mpl cd32b0b5b9 move findGoPathPackage to osutil, and use it to define closureDir
Change-Id: I838a2e665591d13ecf3bb2689df1931d7e14465b
2012-12-13 12:31:56 +01:00
mpl 0824bc7f7c Pointer to minux codereview to do the restart on darwin
Change-Id: I077803b367b543f998d5d25026db2be477963bf8
2012-11-15 18:57:53 +01:00
mpl 62b5da6f99 find the path to the executable of the running instance
to restart camli properly

This change adds the functionality to find the path to
the currently running executable, so that camlistore
can be restarted without à priori knowledge of cwd.
It should work for linux, netBSD and freeBSD, and it
might work for openBSD.
The naive (os.Args[0]) approach is still used with
darwin.

Reference: https://codereview.appspot.com/6736069/

Change-Id: Icc9fc2b4e1b3542cfbe6c457c1fefbe762eff2f1
2012-11-14 16:10:50 +01:00
Andrew Gerrand 7874bef34e add bsds to osutil/restart_unix build rule
Change-Id: If5e7f811ad8c656bcfa48f26c12f7ea59ddef830
2012-08-05 10:55:36 +10:00
mpl 497fc21385 Added/changed copyright
Change-Id: I1de302b52903ebf61100ab061c1fa7f14495fde8
2012-05-27 01:37:54 +02:00
mpl b2f079f081 handle SIGHUP, restart camli from wizard
Change-Id: I9856e49b9c4d76dc3bed1827594451349d4f5810
2012-05-16 11:37:29 +02:00
Brad Fitzpatrick 8fafe38f37 osutil: create cache directory on first access
Change-Id: Ifc599a21ad984028bc7ad2df7bf6fd6099f25f24
2012-04-22 16:19:21 -07:00
Brad Fitzpatrick c7333e7f9b osutil: implement CacheDir on darwin
Change-Id: I73ef36039037f9469df5dc262b5b976cd33a1fd6
2012-04-18 07:44:08 -07:00
Brad Fitzpatrick 71ee67264d osutil: add IdentitySecretRing accessor
Change-Id: Idcb7a62530292eb3e0a98c798dc86a985fc491f1
2012-04-12 16:54:57 -07:00
Brad Fitzpatrick c7d3f606b2 osutil: add per-OS CamliBlobRoot; use .camlistore, not .camli
Change-Id: I9e085d3f7a38357eca0bee0d5576a3db7cb1455e
2012-03-19 13:07:46 -07:00
mpl 882f2d5eef generate default config for user when needed
Change-Id: Ifb5897b38cd72f18ff7ce1e9c3a8c23ee8751ba1
2012-03-05 00:04:35 +01:00
Brad Fitzpatrick 0714a463c9 Update from r60 to [almost] Go 1.
A lot is still broken, but most stuff at least compiles now.

The directory tree has been rearranged now too.  Go libraries are now
under "pkg".  Fully qualified, they are e.g. "camlistore.org/pkg/jsonsign".

The go tool cannot yet fetch from arbitrary domains, but discussion is
happening now on which mechanism to use to allow that.

For now, put the camlistore root under $GOPATH/src.  Typically $GOPATH
is $HOME, so Camlistore should be at $HOME/src/camlistore.org.

Then you can:

$ go build ./server/camlistored

... etc

The build.pl script is currently disabled.  It'll be resurrected at
some point, but with a very different role (helping create a fake
GOPATH and running the go build command, if things are installed at
the wrong place, and/or running fileembed generators).

Many things are certainly broken.

Many things are disabled.  (MySQL, all indexing, etc).

Many things need to be moved into
camlistore.org/third_party/{code.google.com,github.com} and updated
from their r60 to Go 1 versions, where applicable.

The GoMySQL stuff should be updated to use database/sql and the ziutek
library implementing database/sql/driver.

Help wanted.

Change-Id: If71217dc5c8f0e70dbe46e9504ca5131c6eeacde
2012-02-18 21:53:06 -08:00