File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,17 @@ if args.action == 'preview':
128
128
config = None ,
129
129
INDEXING_ENABLED = False )
130
130
131
- url = 'http://127.0.0.1:{}/post/{}' .format (port , post_path )
131
+ url = 'http://localhost:{}/post/{}' .format (port , post_path )
132
+ print (
133
+ "Previewing knowledge post at: {}\n \n "
134
+ "If you are using `kp` locally, a browser window will shortly open at "
135
+ "this address. Otherwise, please replace `localhost` with the hostname "
136
+ "of the server upon which you are running this script, and manually "
137
+ "point your browser at the resulting url.\n \n "
138
+ "When you are ready to exit the preview, simply kill this process using "
139
+ "`<Ctrl> + C`.\n "
140
+ .format (url )
141
+ )
132
142
threading .Timer (1.25 , lambda : webbrowser .open (url )).start ()
133
143
134
144
KnowledgeDeployer .using ('flask' )(
You can’t perform that action at this time.
0 commit comments