Skip to content

Commit

Permalink
Merge pull request #4351 from sanger/update_readme
Browse files Browse the repository at this point in the history
Update installation instructions for Vite and MySQL in Readme
  • Loading branch information
harrietc52 authored Sep 18, 2024
2 parents 80162b1 + db1217e commit fa75ca3
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ bundle exec yard-junk --sanity
The following tools are required for development:

- ruby (version defined in the `.ruby-version`)
- yarn
- node (version defined in the `.nvmrc`)
- yarn (`brew install yarn`)
- node (`brew install node@<version>` version defined in the `.nvmrc`, ensure node is in your PATH)
- mysql client libraries - if you do not want to install mysql server on your machine, consider
using mysql-client: `brew install mysql-client`. Alternatively, to install the MySQL required by
Sequencescape (currently 8.0)
Expand Down Expand Up @@ -220,6 +220,11 @@ bundle exec rails s

Once setup, the default user/password is `admin/admin`.

### Vite

Ensure Node is installed, and in your PATH. You might need to run
`bin/vite build --clear --mode=development`

#### Delayed job

For background processing Sequencescape uses `delayed_job` to ensure that the server is running. It
Expand Down Expand Up @@ -314,6 +319,8 @@ yarn prettier --check .
yarn prettier --write .
```

(If prettier is not yet installed, run `yarn`. This should have ben run in `bin/setup`)

- Prettier rules are configured in .prettierrc.json
- Whole files can be ignored in .prettierignore
- Sections of files can be disabled using #prettier-ignore
Expand Down Expand Up @@ -389,10 +396,20 @@ cluster formation batch which represents a flowcell.

#### MySQL errors when installing

If you are using homebrew with rbenv and run into errors relating to SSL, have a look [here](https://github.com/brianmario/mysql2/issues/795#issuecomment-433219176)
- If you are using homebrew with rbenv and run into errors relating to SSL, have a look [here](https://github.com/brianmario/mysql2/issues/795#issuecomment-433219176)

- If you are upgrading a homebrew MySQL locally and have an error about a missing libmysqlclient dylib file, you may need to redownload the mysql2 gem to fix it i.e. `bundle install --redownload`
This is because the mysql2 gem is simlinked to the homebrew mysql.

If you are upgrading a homebrew MySQL locally and have an error about a missing libmysqlclient dylib file, you may need to redownload the mysql2 gem to fix it i.e. `bundle install --redownload`
This is because the mysql2 gem is simlinked to the homebrew mysql.
- If bundle install is failing to install the `mysql2` gem, try the below (updating the paths as required):

```
gem install mysql2 -v '0.5.6' -- \
--with-mysql-lib=/opt/homebrew/Cellar/mysql/ \
--with-mysql-dir=/opt/homebrew/Cellar/mysql/9.0.1_1 \
--with-mysql-config=/opt/homebrew/Cellar/mysql/9.0.1_1/bin/mysql_config \
--with-mysql-include=/opt/homebrew/Cellar/mysql/9.0.1_1/include
```

#### Installing on Apple Silicon (M1)

Expand Down

0 comments on commit fa75ca3

Please sign in to comment.