当我运行时,gcloud app deploy我收到消息:
ERROR: (gcloud.app.deploy) The required property [project] is not currently set.
You may set it for your current workspace by running:
$ gcloud config set project VALUE
or it can be set temporarily by the environment variable [CLOUDSDK_CORE_PROJECT]
Run Code Online (Sandbox Code Playgroud)
在当前工作区中设置项目导致我部署了错误的应用程序,因此我不想再这样做。我想尝试使用上面列出的环境变量选项进行部署。我该怎么做呢?使用 CLOUDSDK_CORE_PROJECT 的部署语法是什么?我认为这将来自我的 app.yaml 但尚未使其正常工作。
Google PageSpeedInsights 在我的报告中将 Base.js 标记为未使用的 Javascript。487kb 相当大了。似乎来自包括 Youtube 播放器 iframe api。是否需要此文件?如果需要,有人知道为什么它在报告中被标记为未使用的 JS 吗?
iframe API: https: //developers.google.com/youtube/iframe_api_reference
在 PageSpeedInsights 上被标记为未使用 JS 的大文件: https: //www.youtube.com/s/player/c88a8657/player_ias.vflset/en_US/base.js
当为多个屏幕添加文本大小类时,行高(前导)类会被覆盖,因为文本大小类(即 text-6xl)上有一个行高属性。
.xl\:text-6xl {
font-size: 3.75rem;
line-height: 1; //this overrides .leading-tight
}
Run Code Online (Sandbox Code Playgroud)
下面是我需要在每个断点处包含相同行高(前导)的类。
<h1 class="text-4xl leading-tight tracking-wide lg:text-5xl lg:leading-tight xl:text-6xl xl:leading-tight">My Title</h1>
Run Code Online (Sandbox Code Playgroud)
有没有办法避免在每个断点处重新声明领先而只声明leading-tight一次?
我正在尝试使用LIKE和!=条件编写查询:
SELECT *
FROM posts
WHERE title LIKE 'term%'
OR NAME LIKE 'term%'
AND post_type != 'type';
Run Code Online (Sandbox Code Playgroud)
但是,查询结果不会被post_type过滤.我的语法有问题吗?
当我elasticsearch从控制台运行时,我得到以下输出:
Exception in thread "main" java.lang.RuntimeException: starting java failed with [1]
output:
[0.003s][error][logging] Error opening log file 'logs/gc.log': No such file or directory
[0.003s][error][logging] Initialization of output 'file=logs/gc.log' using options 'filecount=32,filesize=64m' failed.
error:
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Invalid -Xlog option '-Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m', see error log for details.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program …Run Code Online (Sandbox Code Playgroud) 安装好的导轨6.0.3。Ran rails new [app],启动服务器,加载主页,服务器日志显示此路由错误。有任何想法吗?这是我没有碰过的路线文件。
Rails.application.routes.draw do
# For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
end
Run Code Online (Sandbox Code Playgroud)