Add assets folder and symlinks to make it easier to upgrade codemirror.
This commit is contained in:
		
							parent
							
								
									41268f431a
								
							
						
					
					
						commit
						2e1b33aea4
					
				
							
								
								
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@ -1,3 +1,5 @@
 | 
				
			|||||||
 | 
					/assets/*
 | 
				
			||||||
 | 
					/CodeMirror/*
 | 
				
			||||||
/codemirror/*
 | 
					/codemirror/*
 | 
				
			||||||
/note-data/*
 | 
					/note-data/*
 | 
				
			||||||
index.html
 | 
					index.html
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										11
									
								
								create-couch-cont.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										11
									
								
								create-couch-cont.sh
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					#!/bin/sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# bind port 5984 to localhost in order to be able to ssh tunnel into couchdb futon admin web interface.
 | 
				
			||||||
 | 
					docker run -d --name couchdb --restart=always -v /data/couchdb:/usr/local/var/lib/couchdb -p 127.0.0.1:5984:5984 klaemo/couchdb:1.6.1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Sleep for 1sec to let couchdb container start up
 | 
				
			||||||
 | 
					sleep 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					docker run -it --rm --link couchdb:couchdb yxdhde/alpine-curl-git curl -X PUT couchdb:5984/_config/admins/admin -d '"secret"'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					docker run -it --rm --link couchdb:couchdb yxdhde/alpine-curl-git curl -X POST -H 'Content-Type: application/x-www-form-urlencoded' couchdb:5984/_session -d 'name=admin&password=secret'
 | 
				
			||||||
@ -15,7 +15,7 @@ app.engine('hbs', hbs.express4({
 | 
				
			|||||||
}));
 | 
					}));
 | 
				
			||||||
app.set('view engine', 'hbs');
 | 
					app.set('view engine', 'hbs');
 | 
				
			||||||
app.set('views', __dirname + '/views');
 | 
					app.set('views', __dirname + '/views');
 | 
				
			||||||
app.use(express.static('codemirror'));
 | 
					app.use(express.static('assets'));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
var notePath = __dirname + '/note-data/allNotes.txt';
 | 
					var notePath = __dirname + '/note-data/allNotes.txt';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user