You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
curl -X PUT http://127.0.0.1:5984/_config/ssl/cert_file \
41
+
-u admin:password \
42
+
-H "Content-Type: application/json" \
43
+
-d '"/etc/couchdb/cert/mycert.pem"'
44
+
45
+
curl -X PUT http://127.0.0.1:5984/_config/ssl/key_file \
46
+
-u admin:password \
47
+
-H "Content-Type: application/json" \
48
+
-d '"/etc/couchdb/cert/privkey.pem"'
49
+
50
+
# Default SSL port 6984
51
+
```
10
52
11
-
and run it on port 80
12
-
`sudo docker run -d -p 80:80 -p 443:443 foxusa/opennote`
53
+
Now in `/OpenNote/#/settings/database/` put the following connection string in the `Replication url` field `https://admin:[email protected]:6984/opennote`
13
54
14
-
or if port 80 is in use
15
-
`sudo docker run -d -p 8080:80 -p 8443:443 foxusa/opennote`
55
+
To import a database from older versions check out `/OpenNote/#/settings/legacy/`
16
56
17
-
# Automatic(Wizard Based Install)
57
+
# Legacy service
58
+
The legacy service is still included to migrate data to the new data structure.
59
+
All write endpoints have been hidden with the exception of the file upload api's.
60
+
61
+
### Automatic(Wizard Based Install)
18
62
To run the installer open
19
63
`<install path>/Service/install.php`
20
64
21
65
Make sure you delete `install.php` and `Config.template`.
22
66
23
-
### Security Note
67
+
####Security Note
24
68
Be default we put the sqlite databse in the web folder. This is not a good idea. We solved this by putting in a htaccess file to not allow the database to be downloaded.
25
69
26
70
Still, you should move this file out of the webserver directory and change the location in `Config.php`
27
71
28
-
## Manual
29
-
###MYSql
72
+
### Using Docker(Full Stack)
73
+
Make sure docker in running in daemon mode with restart previously running containers on
74
+
`docker -d -r` or you could louse your notes if you do not know what your doing
75
+
76
+
Pull the current docker image
77
+
`docker pull foxusa/opennote`
78
+
79
+
and run it on port 80
80
+
`sudo docker run -d -p 80:80 -p 443:443 foxusa/opennote`
81
+
82
+
or if port 80 is in use
83
+
`sudo docker run -d -p 8080:80 -p 8443:443 foxusa/opennote`
84
+
85
+
### Manual
86
+
####MYSql
30
87
- Create a MYSQL database named "OpenNote"
31
88
- Download and extract OpenNote into a folder on your php web-server called "OpenNote"
32
89
- Open up the `Service/model/sql` folder and run `notebook.sql` in your OpenNote database
@@ -38,10 +95,10 @@ These are stored in the following lines of code in `/OpenNote/Config.php`:
38
95
$dbServer = "127.0.0.1";
39
96
$dbName = "notebook";
40
97
```
41
-
98
+
42
99
- Now the site install is complete. You can now open the site by going to your webserver url +/OpenNote
43
100
44
-
###SQLite
101
+
####SQLite
45
102
- Download and extract OpenNote into a folder on your php web-server called "OpenNote"
46
103
- Create a SQLite database file and execute the SQL DDL from `Service/model/sql` and run `notebook.sqlite.sql`.
47
104
- Change the database connection settings inside of `Service/Config.php` to match your db settings.
@@ -59,7 +116,7 @@ Comment the following lines in the dbConfig function:
59
116
```php
60
117
$dbName = "../<relativepath>/OpenNote.sqlite";
61
118
```
62
-
119
+
63
120
- Now the site install is complete. You can now open the site by going to your webserver url +/OpenNote
Copy file name to clipboardExpand all lines: Doc/Upgrade.md
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,13 @@
1
1
# How to upgrade
2
2
3
+
##Upgrading from 14.xx(Locomotive) to 15.07.01
4
+
All you need to do is merge your existing deployment with the release folder while keeping your config files (`openNote\openNote.config.js` and `\Service\Config.php`).
5
+
Make sure to backup your old folder and database.
6
+
7
+
There have been major changes in this release.
8
+
You will need to follow the CouchDB instructions in the Install documentation.
9
+
10
+
3
11
##Docker(14.07.01 to 14.07.02)
4
12
Find the container id of your running container by doing a `docker ps` or `docker ps -l` if the OpenNote conatiner was the last one you stopped.
`sudo docker run -d -p 80:80 -p 443:443 cf77323ed72659b3462073763e9115ff16bb4ae64ce406176703bbc781011ccb /run.sh`
45
53
46
54
or if port 80 is in use
@@ -51,8 +59,8 @@ All done
51
59
52
60
##Manual installs
53
61
54
-
##Upgrading from 14.07(Locomotive) to 14.07.01(Steam Locomotive) or 14.07.01(Steam Locomotive) to 14.07.02 (Diesel Locomotive).
55
-
All you need to do is merge your existing deployment with the release folder while keeping your config files (`openNote\openNote.config.js` and `\Service\Config.php`).
62
+
##Upgrading from 14.07(Locomotive) to 14.07.01(Steam Locomotive) or 14.07.01(Steam Locomotive) to 14.07.02 (Diesel Locomotive).
63
+
All you need to do is merge your existing deployment with the release folder while keeping your config files (`openNote\openNote.config.js` and `\Service\Config.php`).
56
64
57
65
###MySQL(Recomended)
58
66
- Make sure you make a copy of you database and the OpenNote directory
0 commit comments