当我使用以下命令在strongloop中创建模型时:
slc loopback:model
Run Code Online (Sandbox Code Playgroud)
loopback要求我在普通模型或服务器之间进行选择.
只有普通型号或服务器?
我真的不知道在一个选项或另一个选项之间选择要考虑的标准.如果你们中的任何人能够帮助我理解或给我任何见解以做出明智的决定,我将感激不尽.
我尝试使用laravel的模板系统:blade
但在文件中使用以下代码时似乎无法正常工作users.blade.php
:
@extends('layout')
@section('content')
Users! @stop
Run Code Online (Sandbox Code Playgroud)
和浏览器,
@extends('layout')
Run Code Online (Sandbox Code Playgroud) 我正在关注laravel的快速启动,它说"type /users"
但不适合我.我在浏览器中写道,http://DomainServer/ProjectName/users
它抛出:
在此服务器上找不到请求的URL/ProjectName/users.Laravel
我试过以下,
启用apache模块mod_rewrite
也不起作用.
我正在 Google Cloud Platform(GCP)中运行我的 google dataflow 作业。当我在本地运行此作业时,它运行良好,但是当在 GCP 上运行它时,我收到此错误“java.lang.IllegalArgumentException:找不到方案 gs 的文件系统”。我可以访问该 google cloud URI,我可以将我的 jar 文件上传到该 URI,并且可以看到本地作业的一些临时文件。
我在 GCP 中的职位 ID:
2019-08-08_21_47_27-162804342585245230(光束版本:2.12.0)
2019-08-09_16_41_15-11728697820819900062(光束版本:2.14.0)
我尝试过beam版本2.12.0和2.14.0,它们都有相同的错误。
java.lang.IllegalArgumentException: No filesystem found for scheme gs
at org.apache.beam.sdk.io.FileSystems.getFileSystemInternal(FileSystems.java:456)
at org.apache.beam.sdk.io.FileSystems.matchNewResource(FileSystems.java:526)
at org.apache.beam.sdk.io.gcp.bigquery.BigQueryHelpers.resolveTempLocation(BigQueryHelpers.java:689)
at org.apache.beam.sdk.io.gcp.bigquery.BigQuerySourceBase.extractFiles(BigQuerySourceBase.java:125)
at org.apache.beam.sdk.io.gcp.bigquery.BigQuerySourceBase.split(BigQuerySourceBase.java:148)
at org.apache.beam.runners.dataflow.worker.WorkerCustomSources.splitAndValidate(WorkerCustomSources.java:284)
at org.apache.beam.runners.dataflow.worker.WorkerCustomSources.performSplitTyped(WorkerCustomSources.java:206)
at org.apache.beam.runners.dataflow.worker.WorkerCustomSources.performSplitWithApiLimit(WorkerCustomSources.java:190)
at org.apache.beam.runners.dataflow.worker.WorkerCustomSources.performSplit(WorkerCustomSources.java:169)
at org.apache.beam.runners.dataflow.worker.WorkerCustomSourceOperationExecutor.execute(WorkerCustomSourceOperationExecutor.java:78)
at org.apache.beam.runners.dataflow.worker.BatchDataflowWorker.executeWork(BatchDataflowWorker.java:412)
at org.apache.beam.runners.dataflow.worker.BatchDataflowWorker.doWork(BatchDataflowWorker.java:381)
at org.apache.beam.runners.dataflow.worker.BatchDataflowWorker.getAndPerformWork(BatchDataflowWorker.java:306)
at org.apache.beam.runners.dataflow.worker.DataflowBatchWorkerHarness$WorkerThread.doWork(DataflowBatchWorkerHarness.java:135)
at org.apache.beam.runners.dataflow.worker.DataflowBatchWorkerHarness$WorkerThread.call(DataflowBatchWorkerHarness.java:115)
at org.apache.beam.runners.dataflow.worker.DataflowBatchWorkerHarness$WorkerThread.call(DataflowBatchWorkerHarness.java:102)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Run Code Online (Sandbox Code Playgroud) 我添加了验证我的模型"entrada":
class Entrada < ActiveRecord::Base
validates :titulo, presence: true,
length: { minimun: 5 }
attr_accessible :entrada, :titulo
end
Run Code Online (Sandbox Code Playgroud)
所以我得到以下错误:
Range unspecified. Specify the :in, :within, :maximum, :minimum, or :is option.
Run Code Online (Sandbox Code Playgroud)