mirror of
https://github.com/YunoHost/ynh-dev.git
synced 2024-09-03 20:05:59 +02:00
quiet grep
This commit is contained in:
parent
e10cde090f
commit
3f421e68b4
1 changed files with 2 additions and 2 deletions
4
ynh-dev
4
ynh-dev
|
@ -217,14 +217,14 @@ function use_git()
|
|||
ssowat)
|
||||
create_sym_link "/ynh-dev/ssowat" "/usr/share/ssowat"
|
||||
local ssowat_conf_file="/etc/nginx/conf.d/ssowat.conf"
|
||||
if ! grep lua_package_path $ssowat_conf_file; then
|
||||
if ! grep -q lua_package_path $ssowat_conf_file; then
|
||||
local current_ssowatconf=$(cat $ssowat_conf_file)
|
||||
echo "lua_package_path '/ynh-dev/ZeroBraneStudio/lualibs/?/?.lua;/ynh-dev/ZeroBraneStudio/lualibs/?.lua;;';" > $ssowat_conf_file
|
||||
echo "lua_package_cpath '/ynh-dev/ZeroBraneStudio/bin/linux/x64/clibs/?.so;;';" >> $ssowat_conf_file
|
||||
echo "$current_ssowatconf" >> $ssowat_conf_file
|
||||
fi
|
||||
if [ ! -d "/ynh-dev/ZeroBraneStudio" ]; then
|
||||
info "If you want to debug ssowat, you can clone https://github.com/pkulchenko/ZeroBraneStudio (There is a bug on the master branch, please use the tag 1.90 for now) into the ynh-dev directory of your host," info "open it, and open a file at the root of the ssowat project in ynh-dev directory, click on \"Project -> Project Directory -> Set From Current File\"."
|
||||
info "If you want to debug ssowat, you can clone https://github.com/pkulchenko/ZeroBraneStudio (There is a bug on the master branch, please use the tag 1.90 for now) into the ynh-dev directory of your host," info "open it, and open a file at the root of the ssowat project in ynh-dev directory, click on \"Project -> Project Directory -> Set From Current File\"."
|
||||
info "You can start the remote debugger with \"Project -> Start Debugger Server\"."
|
||||
info "Add the line \"require(\"mobdebug\").start('THE_IP_OF_YOUR_HOST_IN_THE_CONTAINER_NETWORK')\" at the top of the file access.lua and reload nginx in your container with \"systemctl reload nginx\"."
|
||||
info "After that you should be able to debug ssowat \o/. The debugger should pause the first time it reaches the line \"require(\"mobdebug\").start('...')\", but you can add breakpoints where needed."
|
||||
|
|
Loading…
Add table
Reference in a new issue