File tree 3 files changed +8
-0
lines changed
3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -316,6 +316,7 @@ _EOC_
316
316
close $out ;
317
317
chmod 0755, " vanilla/$rs_bin_name " ;
318
318
}
319
+ shell " cp -p vanilla/bin/lemplate ./vanilla/lemplate-$vanilla_version " ;
319
320
}
320
321
321
322
sub gen_makefile {
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ install: all
20
20
$(INSTALL ) ./spec $(VANILLA_LIB_DIR ) /vanilla
21
21
$(INSTALL ) ./vanilla-$(VANILLA_VERSION ) $(VANILLA_BIN_PATH ) /vanilla-$(VANILLA_VERSION )
22
22
$(INSTALL ) ./v-console-$(VANILLA_VERSION ) $(VANILLA_BIN_PATH ) /v-console-$(VANILLA_VERSION )
23
+ $(INSTALL ) ./lemplate-$(VANILLA_VERSION ) $(VANILLA_BIN_PATH ) /lemplate-$(VANILLA_VERSION )
23
24
24
25
test : all
25
26
PATH=$(OPENRESTY_PREFIX ) /nginx/sbin:$$ PATH prove -I../test-nginx/lib -r t
Original file line number Diff line number Diff line change @@ -906,6 +906,11 @@ case "$1" in
906
906
die "Config Test Fail."
907
907
fi
908
908
;;
909
+ ltpl)
910
+ echo $ECHO_E"Start using lemplate compile TT2 template ..."
911
+ TT2_TEMPLATE_PATH=$VA_APP_PATH/application/views/
912
+ lemplate-{{VANILLA_VERSION}} --compile $TT2_TEMPLATE_PATH/*.html > $TT2_TEMPLATE_PATH/templates.lua
913
+ ;;
909
914
*)
910
915
echo $ECHO_E"Usage: ./va-ok-service {start|stop|restart|reload|force-reload|confinit[-f]|configtest} [dev]" >&2
911
916
exit 1
@@ -1195,6 +1200,7 @@ function VaApplication.new(app_path)
1195
1200
1196
1201
service_manage_sh = sgsub (service_manage_sh , " {{APP_NAME}}" , app_name )
1197
1202
service_manage_sh = sgsub (service_manage_sh , " {{OPENRESTY_NGINX_ROOT}}" , VANILLA_NGX_PATH )
1203
+ service_manage_sh = sgsub (service_manage_sh , " {{VANILLA_VERSION}}" , VANILLA_VERSION )
1198
1204
VaApplication .files [' va-' .. app_name .. ' -service' ] = sgsub (service_manage_sh , " {{VA_APP_PATH}}" , app_path )
1199
1205
1200
1206
dev_nginx_vhost_config_tpl = sgsub (dev_nginx_vhost_config_tpl , " {{APP_NAME}}" , app_name )
You can’t perform that action at this time.
0 commit comments