Skip to content

Commit 3e816a9

Browse files
authored
Merge pull request #63 from fieldlinguist/master
update robots.txt to prevent semrush and use http on elasticsearch
2 parents 6f82b40 + 900e80c commit 3e816a9

6 files changed

Lines changed: 5 additions & 3 deletions

File tree

app/components/Search/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class SearchContainer extends Component {
138138
static search ({params, urls, store, corpus, loadSearchResults}) {
139139
corpus = corpus || new CorpusMask(store.getState().corpusMaskDetail.toJS())
140140
if (!corpus.datumFields || !corpus.datumFields.length) {
141-
console.warn('Datum fields were not defined on this corpus', corpus)
141+
console.warn('Datum fields were not defined on this corpus', corpus.dbname)
142142
corpus.datumFields = []
143143
}
144144
corpus.datumFields.map(updateCorpusField)

public/robots.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
User-agent: *
1+
User-agent: SemrushBot
22
Disallow: /
3+
1.51 MB
Binary file not shown.

public/slides/why_lingsync.pdf

3.38 MB
Binary file not shown.

server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ app.engine("html", consolidate.handlebars);
3737
app.set("view engine", ".html");
3838
app.set("views", path.join(__dirname, "views"));
3939
app.use(favicon(__dirname + "/public/favicon.ico"));
40-
app.use(logger("common"));
40+
app.use(logger("combined"));
4141
app.use(methodOverride());
4242
app.use(bodyParser.json());
4343
app.use(bodyParser.urlencoded({

start_service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22

3+
export NODE_TLS_REJECT_UNAUTHORIZED=0;
34
cd $FIELDDB_HOME/FieldDBWebServer
45
forever \
56
start \

0 commit comments

Comments
 (0)