path

How to fix ingress 404 default backend

谁说胖子不能爱 提交于 2021-01-24 07:42:41
问题 I started to use Kubernetes few month ago and I actually migrate my microServices to my rancher cluster (RKE). Everything works good, my deployments are good and services too. I would like use ingress. Everything looks good, services are find by ingress and pods are find by services. However when I try to go to the website, I have a 404 error page from ingress controller. You can see my configuration for juste two paths : one nginx and on grafana. Someone knows how can i fix it and use

How get full path to file build.gradle by Groovy?

瘦欲@ 提交于 2021-01-22 04:28:22
问题 I need create file in my java-project near buiid.gradle-file. I must create task (Groovy task) in build.gradle-file, my task must create file near buiid.gradle in my project, but I do not know - how do get path to buiid.gradle-file, that is putting in my project. How get full path to file buiid.gradle by Groovy? Help me, please. 回答1: There are several ways to accomplish this. If you look at the Working With Files page, you can simply use the file() method that is a part of the Project object.

I want to change path of ~/Library/Developer/Xcode/iOS DeviceSupport to my External Drive

我的梦境 提交于 2021-01-21 09:18:31
问题 When we connect any iOS device to MAC OS X, by default Xcode copy device info into ~/Library/Developer/Xcode/iOS DeviceSupport path. I want that files for symbolicate crash log. But my MAC derive is almost full only 1 GB avaialble. So I want to move ~/Library/Developer/Xcode/iOS DeviceSupport to my External drive so my symbolication works well. So can any one please suggest me some way to change path. I have try to change the developer directory but that's not work. Any help or hint will be

Call Ghostscript in Windows by its invocation name?

筅森魡賤 提交于 2021-01-18 05:39:30
问题 What should I do to be able to call Ghostscript in Windows by its invocation name? I added Ghostscript bin folder to Windows PATH and Path variables but it doesn't work, neither does 'gswin32c.exe' nor 'gswin32c'. Logging out and then logging back in also didn't help. How do I solve this issue? Maybe I'm using the wrong invocation name? 回答1: There are several possibilities. To list the two most frequent ones: c:\full\path\to\gswin32c.exe should always work. For 64bit systems, use c:\full\path

Call Ghostscript in Windows by its invocation name?

家住魔仙堡 提交于 2021-01-18 05:38:25
问题 What should I do to be able to call Ghostscript in Windows by its invocation name? I added Ghostscript bin folder to Windows PATH and Path variables but it doesn't work, neither does 'gswin32c.exe' nor 'gswin32c'. Logging out and then logging back in also didn't help. How do I solve this issue? Maybe I'm using the wrong invocation name? 回答1: There are several possibilities. To list the two most frequent ones: c:\full\path\to\gswin32c.exe should always work. For 64bit systems, use c:\full\path

How to configure the content of module.paths in a nodejs environment

三世轮回 提交于 2021-01-07 02:52:53
问题 On my debian 10 system I do the follwing as user "joerg": joerg@h2257088:~/temporary/play$ export NODE_PATH=myOwnNodePath joerg@h2257088:~/temporary/play$ node Welcome to Node.js v12.20.0. Type ".help" for more information. > module.paths [ '/home/joerg/temporary/play/repl/node_modules', '/home/joerg/temporary/play/node_modules', '/home/joerg/temporary/node_modules', '/home/joerg/node_modules', '/home/node_modules', '/node_modules', '/usr/lib/node' ] > Doing the same as user "root" gives:

Anaconda paths broken after username change

最后都变了- 提交于 2021-01-05 11:53:42
问题 I just changed my username on Ubuntu (17.10) and my Anaconda packages are messed up. For instance, when I run conda in the terminal, I get the following error: bash: /home/<new username>/anaconda3/bin/conda: /home/<old username>/anaconda3/bin/python: bad interpreter: No such file or directory How can I fix this without reinstalling Anaconda3? 回答1: $ lv home/<new username>/anaconda3/bin/conda will show you the below. #!/home/<old username>/anaconda3/bin/python # -*- coding: utf-8 -*- . . . The

Cannot build &apos;tutorial:tutorial exploded&apos; artif...

浪子不回头ぞ 提交于 2021-01-05 10:39:12
用[mvn idea:idea] 生成的工程文件导入到idea 中,如果想要在idea中运行tomcat等web容器的话,就会报这个错误 “Cannot build 'tutorial:tutorial exploded' artifact: output path is not specified” 原因是没有指定output路径,用于存放idea打包后war文件。 当然这个war文件也可以用[mvn:package]生成。 所以配置如下 来源: oschina 链接: https://my.oschina.net/u/68007/blog/14621

java.io.IOException: Unable to establish loopback connection

孤者浪人 提交于 2021-01-05 07:39:36
问题 I get this java exception when i build android in CMD and i don't catch why and how to figure this out. The exception is: java.io.IOException: Unable to establish loopback connection What can I do ? (ionic 2 building android windows 10 Home 64 bit) 回答1: Put the options in the _JAVA_OPTIONS environment variable. For example, on Linux, put the following in your ~/.profile or ~/.bash_profile : export _JAVA_OPTIONS="-Djava.net.preferIPv4Stack=true" Windows: set _JAVA_OPTIONS=-Djava.net

How to construct path for mtp devices (usable in folder browse dialog)?

烂漫一生 提交于 2021-01-04 06:41:50
问题 I implemented file transfer from windows pc to an android device, which is connected with MTP to the computer. The copy implementation is ready (I used this example: http://code.msdn.microsoft.com/windowsdesktop/Portable-Devices-COM-API-fd4a5f7d). Now I would like to improve UI, I would like to offer a folder selection dialog, where the user can select a MTP device folder, where I will save the file (CLSID_FileOpenDialog with FOS_PICKFOLDERS works nice). Note that simple file save dialog