If you’ve got a copy of Ghost running on a Raspberry Pi (or perhaps another ARM-based server) you’ll probably have noticed that it takes AAAAAGES to login.
To fix it,
cd into your Ghost directory:
And run the following command:
sudo npm install bcrypt && sudo sed -i "s/require('bcryptjs')/require('bcrypt')/" core/server/models/user.js
Here’s what happens
sudo npm install bcryptinstalls the bcrypt library into your Ghost installation.
&&makes sure that command completed successfully before running the next one
sudo sed -i "s/require('bcryptjs')/require('bcrypt')/" core/server/models/user.jsfinds the string
require=('bcryptjs'), which is what tells Ghost to use the bcryptjs library, and replaces it with
require=('bcrypt'), telling it to use your newly installed (faster) bcrypt library instead.
Enjoy your speedy new Ghost login!
Did you find this post useful?