update URLs

pull/1201/head
gabrielburnworth 2019-05-20 13:14:16 -07:00
parent 7b15a8f485
commit 0af336e42a
9 changed files with 13 additions and 13 deletions

View File

@ -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.
**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.

View File

@ -2,7 +2,7 @@ FarmBot::Application.configure do
config
.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.cache_classes = true
config.consider_all_requests_local = false

View File

@ -45,7 +45,7 @@ function fakeResponse(config: Partial<FakeProps>): AxiosResponse {
headers: { "X-Farmbot-Rpc-Id": config.uuid || uuid() },
config: {
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", () => {
const resp = fakeResponse({
method: "post",
url: "https://staging.farmbot.io/api/webcam_feeds/"
url: "https://staging.farm.bot/api/webcam_feeds/"
});
responseFulfilled(resp);
expect(startTracking).not.toHaveBeenCalled();

View File

@ -4,7 +4,7 @@ import { shallow } from "enzyme";
describe("allUrlsAreSafe", () => {
const HTTP = "http://farm.bot";
const HTTPS = "https://farmbot.io";
const HTTPS = "https://farm.bot";
it("catches HTTPS vs HTTP urls", () => {
/** Always fails if there is even one http: URL */
expect(allAreHttps([HTTP, HTTPS])).toBeFalsy();

View File

@ -56,7 +56,7 @@ describe("<FrontPage />", () => {
const el = mount(<FrontPage />);
["Privacy Policy", "Terms of Use"].map(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));
});

View File

@ -74,7 +74,7 @@ describe("<TosUpdate/>", () => {
const el = mount(<TosUpdate />);
["Privacy Policy", "Terms of Use"].map(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));
});
});

View File

@ -94,8 +94,8 @@
},
"globalConfig": {
"NODE_ENV": "development",
"TOS_URL": "https://farmbot.io/tos/",
"PRIV_URL": "https://farmbot.io/privacy/",
"TOS_URL": "https://farm.bot/tos/",
"PRIV_URL": "https://farm.bot/privacy/",
"LONG_REVISION": "------------",
"SHORT_REVISION": "--------"
}

View File

@ -64,7 +64,7 @@
<body>
<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">
<clipPath id="p.0">
<path d="m0 0l595.0 0l0 274.0l-595.0 0l0 -274.0z" clip-rule="nonzero"></path>
@ -92,4 +92,4 @@
</div>
</body>
</html>
</html>

View File

@ -65,7 +65,7 @@
<body>
<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">
<clipPath id="p.0">
<path d="m0 0l595.0 0l0 274.0l-595.0 0l0 -274.0z" clip-rule="nonzero"></path>
@ -93,4 +93,4 @@
</div>
</body>
</html>
</html>