From 226e0b5838a39d456cf0913b8412d8f5b9593333 Mon Sep 17 00:00:00 2001 From: Rick Carlino Date: Wed, 21 Sep 2016 15:41:33 -0500 Subject: [PATCH] Re-deploy --- .buildpacks | 0 config/routes.rb | 5 ++--- frontend_build.yml | 14 ++++++++++++++ 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 .buildpacks create mode 100644 frontend_build.yml diff --git a/.buildpacks b/.buildpacks new file mode 100644 index 000000000..e69de29bb diff --git a/config/routes.rb b/config/routes.rb index bd84f6f0d..8f7147a8c 100755 --- a/config/routes.rb +++ b/config/routes.rb @@ -17,8 +17,7 @@ FarmBot::Application.routes.draw do devise_for :users, :controllers => {:registrations => "registrations"} # Routes for the single page Javascript app. - web_app_path = "/app" - get web_app_path, to: 'dashboard#index', as: :dashboard - match web_app_path + "/*path", to: redirect(web_app_path), via: :all + get "/app", to: 'dashboard#index', as: :dashboard + match "/app/*path", to: redirect("/app"), via: :all end diff --git a/frontend_build.yml b/frontend_build.yml new file mode 100644 index 000000000..cd43f18c1 --- /dev/null +++ b/frontend_build.yml @@ -0,0 +1,14 @@ +language: ruby +rvm: +- 2.2.3 +before_script: +- npm install +services: +- mongodb +notifications: + irc: + - "chat.freenode.net#farmbot" +env: +# A 'fake' secret token for use in our CI env. +# Don't worry- this isn't the real one. + - SECRET_TOKEN=e815982094c62436066bafc9151f2d33c4a351a776654cb7487476de260a4592