[Rails] Re: JavaScript fails on a fresh Rails App deployed to Heroku

2018-09-04 Thread Elias Kechter
Hey Hassan, yes this would have helped me alot. I figured it out yesterday after I wrote the alst emssage. It was all the failure of the uglifier gem. I changed the gem version to 3.0.8 (it was 4.1.18 before) and it worked. The uglifier gem somehow produced corrupted JS files. But you would hav

Re: [Rails] Re: JavaScript fails on a fresh Rails App deployed to Heroku

2018-09-04 Thread Hassan Schroeder
On Tue, Sep 4, 2018 at 1:34 PM, Elias Kechter wrote: > It does not work in production either. The Error is now I am def not an expert with the asset pipeline -- try to minimize JS usage, anyway -- but commenting out the js_compre

[Rails] Re: JavaScript fails on a fresh Rails App deployed to Heroku

2018-09-04 Thread Elias Kechter
I have tried to start it in production mode: rails db:create -RAILS_ENV=producion > rails db:migrate -RAILS_ENV=producion rails assets:precompile rails s -e production It does not work in production either. The Error is now Failed to load resource: the server responded with a status of

Re: [Rails] [Testing] Selenium webdriver + Minitest + SQLite3

2018-09-04 Thread Hassan Schroeder
On Tue, Sep 4, 2018 at 10:05 AM, João Bordalo wrote: > Is there a stack trace you can post? > No, it is the server that raises the error, not the selenium script ? Where are you seeing the error? If it's server-generated then I'd expect *something* in the logs, hopefully including a stacktrace.

Re: [Rails] [Testing] Selenium webdriver + Minitest + SQLite3

2018-09-04 Thread João Bordalo
You've confirmed this succeeds when you perform this same operation manually? I would wonder if Selenium is somehow generating two click events, but that's a WAG. I have tried it manually and It works as it is supposed to ( the form is submitted currently to database). Is there a stack trace y

Re: [Rails] [Testing] Selenium webdriver + Minitest + SQLite3

2018-09-04 Thread Hassan Schroeder
On Tue, Sep 4, 2018 at 8:38 AM, João Bordalo wrote: > Problem: When the selenium 'clicks' on the submit button, the server raises > the following error related to Sqlite: > > SQLite3::BusyException: database is locked: commit transaction You've confirmed this succeeds when you perform this same

Re: [Rails] JavaScript fails on a fresh Rails App deployed to Heroku

2018-09-04 Thread Hassan Schroeder
On Tue, Sep 4, 2018 at 4:58 AM, Elias Kechter wrote: > I think there is a big problem with JavaScript files in Rails 5 apps in > Production environment on Heroku. > And the app here: https://rocky-inlet-61318.herokuapp.com/ You probably need to figure out why your app above shows JS errors in th

[Rails] JavaScript fails on a fresh Rails App deployed to Heroku

2018-09-04 Thread Elias Kechter
I think there is a big problem with JavaScript files in Rails 5 apps in Production environment on Heroku. Steps to reproduce Step 1: Creating a new Rails 5 App and switching to the root folder rails new my_app --database=postgresql cd my_app Step 2: Generate a controller rails generate contr

[Rails] [Testing] Selenium webdriver + Minitest + SQLite3

2018-09-04 Thread João Bordalo
Hi there, I have a rails application (version 3.2.22). And now I'm creating functional tests through browser using Selenium Webdriver(for browser interaction) and Minitest (to validate). Before running my test script (that fills a form and submits), I launch the rails server in order to seleni