# Nginx Performance Report plugin incompatible with development environment setup script

**URL:** https://meta.discourse.org/t/nginx-performance-report-plugin-incompatible-with-development-environment-setup-script/48261
**Category:** Development
**Created:** [5 Agosto 2016, 4:14pm UTC](https://meta.discourse.org/t/nginx-performance-report-plugin-incompatible-with-development-environment-setup-script/48261 "2016-08-05T16:14:02Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jamesmarkcook](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamesmarkcook/32/168563_2.png) [@jamesmarkcook](https://meta.discourse.org/u/jamesmarkcook)
#### Post date: [5 Agosto 2016, 4:14pm UTC](https://meta.discourse.org/t/nginx-performance-report-plugin-incompatible-with-development-environment-setup-script/48261/1 "2016-08-05T16:14:02Z")

</div>

I stumbled upon a ruby version issue when setting up a Discourse development environment.

The install script that the beginners guide links to installs Ruby 2.2.3 [here](https://github.com/techAPJ/install-rails/blob/master/mac#L83)

However [this code](https://github.com/discourse/discourse/blob/master/plugins/discourse-nginx-performance-report/app/jobs/scheduled/daily_performance_report.rb#L13) uses syntax that’s [only compatible from Ruby 2.3](https://infinum.co/the-capsized-eight/articles/multiline-strings-ruby-2-3-0-the-squiggly-heredoc)

This resulted in a syntax error for me when running the initial DB setup steps locally.

Either we need to change the version in the script to install 2.3 or change the code in that file.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [5 Agosto 2016, 6:56pm UTC](https://meta.discourse.org/t/nginx-performance-report-plugin-incompatible-with-development-environment-setup-script/48261/2 "2016-08-05T18:56:23Z")

</div>

Discourse is 2.3 only. Can you link the guide that links to techAPJ guide so we can fix?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [5 Agosto 2016, 8:55pm UTC](https://meta.discourse.org/t/nginx-performance-report-plugin-incompatible-with-development-environment-setup-script/48261/3 "2016-08-05T20:55:13Z")

</div>

Looks like the Guide is fine, it’s just that the

Here is the Guide here that points to the mac install script.

> [@Install Discourse on macOS for development](https://meta.discourse.org/t/install-discourse-on-macos-for-development/15772/1):
>
> Install Discourse Dependencies
> 
> Run this script in terminal, to setup Rails development environment:
> 
> bash \<(curl -s [https://raw.githubusercontent.com/techAPJ/install-rails/master/mac](https://raw.githubusercontent.com/techAPJ/install-rails/master/mac)

The [Linux Version](https://github.com/techAPJ/install-rails/blob/master/linux) correctly includes `ruby_version="2.3.0"`

Should I submit a PR? Seems silly for 3 characters, or maybe it’s easier to click “accept”.

Well, here it is anyway:

[https://github.com/pfaffman/install-rails/pull/1](https://github.com/pfaffman/install-rails/pull/1)

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [6 Agosto 2016, 2:01am UTC](https://meta.discourse.org/t/nginx-performance-report-plugin-incompatible-with-development-environment-setup-script/48261/4 "2016-08-06T02:01:26Z")

</div>

Thanks for bringing this in my notice! 👍

Bumped the Ruby version of Mac install script.
