update URLs
parent
7b15a8f485
commit
0af336e42a
|
@ -18,7 +18,7 @@ There are only a handful of use cases where running a third party server is advi
|
||||||
|
|
||||||
FarmBot, Inc. provides a publicly accessible server at [https://my.farm.bot/](https://my.farm.bot/) for end users that are not familiar with Ruby on Rails application development. Hosting your own server will require an understanding of how Ruby on Rails applications (and databases) operate. It is designed for use by software engineers. Self-hosting the Web App will not provide you with a more stable user experience and may result in accidental security issues or data loss.
|
FarmBot, Inc. provides a publicly accessible server at [https://my.farm.bot/](https://my.farm.bot/) for end users that are not familiar with Ruby on Rails application development. Hosting your own server will require an understanding of how Ruby on Rails applications (and databases) operate. It is designed for use by software engineers. Self-hosting the Web App will not provide you with a more stable user experience and may result in accidental security issues or data loss.
|
||||||
|
|
||||||
**If you are not a Ruby on Rails developer**, or you have never written a Ruby on Rails application, you are encouraged to use [the publicly available web app](http://my.farmbot.io/). Running a server is *a non-trivial task with security implications*. Data loss and security issues are possible in some circumstances. Self hosting requires an intermediate background in Ruby, SQL and Linux system administration.
|
**If you are not a Ruby on Rails developer**, or you have never written a Ruby on Rails application, you are encouraged to use [the publicly available web app](http://my.farm.bot/). Running a server is *a non-trivial task with security implications*. Data loss and security issues are possible in some circumstances. Self hosting requires an intermediate background in Ruby, SQL and Linux system administration.
|
||||||
|
|
||||||
We do not have the resources available to help novice developers learn to setup servers, environments, configurations, or perform basic Linux command line instructions.
|
We do not have the resources available to help novice developers learn to setup servers, environments, configurations, or perform basic Linux command line instructions.
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ FarmBot::Application.configure do
|
||||||
|
|
||||||
config
|
config
|
||||||
.action_mailer
|
.action_mailer
|
||||||
.default_url_options = { host: ENV.fetch("API_HOST", "my.farmbot.io") }
|
.default_url_options = { host: ENV.fetch("API_HOST", "my.farm.bot") }
|
||||||
config.active_support.deprecation = :notify
|
config.active_support.deprecation = :notify
|
||||||
config.cache_classes = true
|
config.cache_classes = true
|
||||||
config.consider_all_requests_local = false
|
config.consider_all_requests_local = false
|
||||||
|
|
|
@ -45,7 +45,7 @@ function fakeResponse(config: Partial<FakeProps>): AxiosResponse {
|
||||||
headers: { "X-Farmbot-Rpc-Id": config.uuid || uuid() },
|
headers: { "X-Farmbot-Rpc-Id": config.uuid || uuid() },
|
||||||
config: {
|
config: {
|
||||||
method: config.method || "put",
|
method: config.method || "put",
|
||||||
url: config.url || "http://my.farmbot.io/api/tools/6"
|
url: config.url || "http://my.farm.bot/api/tools/6"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ describe("responseFulfilled", () => {
|
||||||
it("won't fire for webcam feed updates", () => {
|
it("won't fire for webcam feed updates", () => {
|
||||||
const resp = fakeResponse({
|
const resp = fakeResponse({
|
||||||
method: "post",
|
method: "post",
|
||||||
url: "https://staging.farmbot.io/api/webcam_feeds/"
|
url: "https://staging.farm.bot/api/webcam_feeds/"
|
||||||
});
|
});
|
||||||
responseFulfilled(resp);
|
responseFulfilled(resp);
|
||||||
expect(startTracking).not.toHaveBeenCalled();
|
expect(startTracking).not.toHaveBeenCalled();
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { shallow } from "enzyme";
|
||||||
|
|
||||||
describe("allUrlsAreSafe", () => {
|
describe("allUrlsAreSafe", () => {
|
||||||
const HTTP = "http://farm.bot";
|
const HTTP = "http://farm.bot";
|
||||||
const HTTPS = "https://farmbot.io";
|
const HTTPS = "https://farm.bot";
|
||||||
it("catches HTTPS vs HTTP urls", () => {
|
it("catches HTTPS vs HTTP urls", () => {
|
||||||
/** Always fails if there is even one http: URL */
|
/** Always fails if there is even one http: URL */
|
||||||
expect(allAreHttps([HTTP, HTTPS])).toBeFalsy();
|
expect(allAreHttps([HTTP, HTTPS])).toBeFalsy();
|
||||||
|
|
|
@ -56,7 +56,7 @@ describe("<FrontPage />", () => {
|
||||||
const el = mount(<FrontPage />);
|
const el = mount(<FrontPage />);
|
||||||
["Privacy Policy", "Terms of Use"].map(string =>
|
["Privacy Policy", "Terms of Use"].map(string =>
|
||||||
expect(el.text()).toContain(string));
|
expect(el.text()).toContain(string));
|
||||||
["https://farmbot.io/privacy/", "https://farmbot.io/tos/"]
|
["https://farm.bot/privacy/", "https://farm.bot/tos/"]
|
||||||
.map(string => expect(el.html()).toContain(string));
|
.map(string => expect(el.html()).toContain(string));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,7 @@ describe("<TosUpdate/>", () => {
|
||||||
const el = mount(<TosUpdate />);
|
const el = mount(<TosUpdate />);
|
||||||
["Privacy Policy", "Terms of Use"].map(string =>
|
["Privacy Policy", "Terms of Use"].map(string =>
|
||||||
expect(el.text()).toContain(string));
|
expect(el.text()).toContain(string));
|
||||||
["https://farmbot.io/privacy/", "https://farmbot.io/tos/"]
|
["https://farm.bot/privacy/", "https://farm.bot/tos/"]
|
||||||
.map(string => expect(el.html()).toContain(string));
|
.map(string => expect(el.html()).toContain(string));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -94,8 +94,8 @@
|
||||||
},
|
},
|
||||||
"globalConfig": {
|
"globalConfig": {
|
||||||
"NODE_ENV": "development",
|
"NODE_ENV": "development",
|
||||||
"TOS_URL": "https://farmbot.io/tos/",
|
"TOS_URL": "https://farm.bot/tos/",
|
||||||
"PRIV_URL": "https://farmbot.io/privacy/",
|
"PRIV_URL": "https://farm.bot/privacy/",
|
||||||
"LONG_REVISION": "------------",
|
"LONG_REVISION": "------------",
|
||||||
"SHORT_REVISION": "--------"
|
"SHORT_REVISION": "--------"
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,7 +64,7 @@
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<a href="https://farmbot.io" target="_blank">
|
<a href="https://farm.bot" target="_blank">
|
||||||
<svg version="1.1" viewBox="0.0 0.0 595.0 274.0" fill="none" stroke="none" stroke-linecap="square" stroke-miterlimit="10" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
<svg version="1.1" viewBox="0.0 0.0 595.0 274.0" fill="none" stroke="none" stroke-linecap="square" stroke-miterlimit="10" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||||
<clipPath id="p.0">
|
<clipPath id="p.0">
|
||||||
<path d="m0 0l595.0 0l0 274.0l-595.0 0l0 -274.0z" clip-rule="nonzero"></path>
|
<path d="m0 0l595.0 0l0 274.0l-595.0 0l0 -274.0z" clip-rule="nonzero"></path>
|
||||||
|
@ -92,4 +92,4 @@
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
<body>
|
<body>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
|
||||||
<a href="https://farmbot.io" target="_blank">
|
<a href="https://farm.bot" target="_blank">
|
||||||
<svg version="1.1" viewBox="0.0 0.0 595.0 274.0" fill="none" stroke="none" stroke-linecap="square" stroke-miterlimit="10" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
<svg version="1.1" viewBox="0.0 0.0 595.0 274.0" fill="none" stroke="none" stroke-linecap="square" stroke-miterlimit="10" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||||
<clipPath id="p.0">
|
<clipPath id="p.0">
|
||||||
<path d="m0 0l595.0 0l0 274.0l-595.0 0l0 -274.0z" clip-rule="nonzero"></path>
|
<path d="m0 0l595.0 0l0 274.0l-595.0 0l0 -274.0z" clip-rule="nonzero"></path>
|
||||||
|
@ -93,4 +93,4 @@
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue