Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
openresty
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tangku7
openresty
Commits
98266078
Commit
98266078
authored
Jul 19, 2018
by
周尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change base.lua path
parent
4ee26b73
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
luabiz/base.lua
luabiz/base.lua
+2
-2
nginx/conf/nginx.conf
nginx/conf/nginx.conf
+4
-4
No files found.
luabiz/base.lua
View file @
98266078
...
@@ -7,7 +7,7 @@ function _BASE.__LINE__ () return debug.getinfo(2,'l').currentline end
...
@@ -7,7 +7,7 @@ function _BASE.__LINE__ () return debug.getinfo(2,'l').currentline end
function
_BASE
.
log
(
self
,
fname
,
...
)
function
_BASE
.
log
(
self
,
fname
,
...
)
local
fpath
=
string.format
(
"
/Users/zhoush/openresty/
nginx/logs/%s_%s.log"
,
tostring
(
fname
),
os.date
(
"%Y%m%d"
))
local
fpath
=
string.format
(
"nginx/logs/%s_%s.log"
,
tostring
(
fname
),
os.date
(
"%Y%m%d"
))
local
f
=
io.open
(
fpath
,
"a+"
)
local
f
=
io.open
(
fpath
,
"a+"
)
local
str
=
""
local
str
=
""
for
i
=
1
,
select
(
"#"
,
...
)
do
for
i
=
1
,
select
(
"#"
,
...
)
do
...
@@ -22,7 +22,7 @@ function _BASE.log(self, fname, ...)
...
@@ -22,7 +22,7 @@ function _BASE.log(self, fname, ...)
end
end
function
_BASE
.
db_read
(
self
,
dbpath
)
function
_BASE
.
db_read
(
self
,
dbpath
)
local
f
=
io.open
(
"
/Users/zhoush/openresty/
nginx/conf/"
..
dbpath
,
"r"
)
local
f
=
io.open
(
"nginx/conf/"
..
dbpath
,
"r"
)
local
tmp
=
f
:
read
(
"a*"
)
local
tmp
=
f
:
read
(
"a*"
)
local
db_st
=
json
.
decode
(
tmp
)
local
db_st
=
json
.
decode
(
tmp
)
f
:
close
()
f
:
close
()
...
...
nginx/conf/nginx.conf
View file @
98266078
user
zhoush
;
user
root
;
# user nobody;
# user nobody;
worker_processes
auto
;
worker_processes
auto
;
...
@@ -31,7 +31,7 @@ http {
...
@@ -31,7 +31,7 @@ http {
#keepalive_timeout 0;
#keepalive_timeout 0;
keepalive_timeout
65
;
keepalive_timeout
65
;
init_worker_by_lua_file
"openresty/luabiz/settle/settle.lua"
;
init_worker_by_lua_file
"
/www/
openresty/luabiz/settle/settle.lua"
;
#gzip on;
#gzip on;
server
{
server
{
...
@@ -111,8 +111,8 @@ http {
...
@@ -111,8 +111,8 @@ http {
location
/test
{
location
/test
{
content_by_lua_block
{
content_by_lua_block
{
package.path
=
package.path.."
;
lu
biz/?.lua
;
;
"
package.path
=
package.path.."
;
openresty/lua
biz/?.lua
;
;
"
package.path
=
package.path.."
;
lu
biz/settle/?.lua
;
;
"
package.path
=
package.path.."
;
openresty/lua
biz/settle/?.lua
;
;
"
tk_sdt
=
require
("tk_sdt")
tk_sdt
=
require
("tk_sdt")
tk_sdt:run()
tk_sdt:run()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment