If you are will to use a database you can use Noteself + couchdb that synchronizes without restarting anything.
Regards
I didn't make any investigation yet, but I guess that several things are happening:
you're trying to access an http server from an https origin. Browsers prevent this kind of things. Both the server and the client should speak http or https, never mix.
if you are using a standard version of couchdb then CORS is not activated by default. You have to activate it for being able to access your database server from online version of Noteself. Let me look for instructions about how to setup CORS.
In any case, you can create a free account on cloudant which makes all this things easier.
npm install -g add-cors-to-couchdb add-cors-to-couchdb
Or if your database is not at 127.0.0.1:5984:
$ add-cors-to-couchdb http://me.example.com -u myusername -p mypassword
add-cors-to-couchdb doesn't work but we can change the options in /etc/couchdb/default.ini
[httpd]
enable_cors = true
[cors]
credentials = true
; List of origins separated by a comma, * means accept all
; Origins must include the scheme: http://example.com
; You can’t set origins: * and credentials = true at the same time.
origins = *
; List of accepted headers separated by a comma
headers = accept, authorization, content-type, origin, referer, x-csrf-token
; List of accepted methods
methods = GET, PUT, POST, HEAD, DELETE
I just have to play with it now!!!
Best regards,
Stephane
Hello guys !
Thanks to Mario guidelines, it works !