strider
strider copied to clipboard
Add how to create first user when you deployed onto Heroku
I didn't find instruction how to create first user when you deploy Strider on Heroku. I think additional instruction is required in Strider on Heroku page.
I considered to add instruction, but I'm not sure if my way is correct.
I tried to login to Heroku via SSH, and run strider addUser
as follows:
[local machine] $ heroku run bash --app your-strider-app-name
Running bash on your-strider-app-name... up, run.1234
[heroku] $ node ./bin/strider addUser
{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }
js-bson: Failed to load c++ bson extension, using pure JS version
Connecting to MongoDB URL: mongodb://heroku_8fs5b60x:[email protected]:33734/heroku_8fs5b60x
Enter email []: [email protected]
Enter password []: ******
Is admin? (y/n) [n]y
Email: [email protected]
Password: ****
isAdmin: y
OK? (y/n) [y]
User created successfully! Enjoy.
If above process is correct, I will update Strider on Heroku page. If not, I would like anyone to update appropriate instruction.
Looks good to me. Looking forward to your update.
Any workaround to this documentation?
The example above is correct.