1. Install ngrok:
https://snapcraft.io/install/ngrok/ubuntu
2. Sign up account to ngrok: here is getting ngrok authtoken
https://dashboard.ngrok.com/get-started/your-authtoken
https://dashboard.ngrok.com/get-started/setup/linux
3. Add token run command of terminal: ngrok authtoken xxxxxxxxxxxxxxxxxxxxxxxxx
OR
ngrok config add-authtoken xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
4. Then run resrver : ngrok http 3001
5. Then add in development env: config.hosts << "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
6. Then server restart: rails s
https://stackoverflow.com/questions/72244171/cant-add-authtoken-to-ngrok
No comments:
Post a Comment