You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.
To setup my full work environment I would ideally like to:
Tab 1: Start MongoDB
Tab 2: Open the MongoDB shell (mongo)
within Tab 2 we're now inside the mongo client, waiting for input.
within Tab 2 I would now like to connect to my project's DB (use db_name) then authenticate via db.auth( 'user', 'pass' )
I could easily get step 1 and 2 accomplished but trying to then run code within Tab 2 is where I got stuck… is there any way this can be done?
Thanks for reading.
Below is my full script in case that helps which is run via consular start scst in Terminal.app (OSX 10.7)
# Setup the dev environment for the SCST project.setup'echo "setup"'# CD into project directorybefore{run'cd ~/Sites/git/scst/scst'}# Start MongoDBtab"mongo_start"# note: this is an alias available in my system# Connect to MongoDB shelltabdorun"mongo"# open the mongo shellrun"use scst"# within mongo, connect to project's DBrun"db.auth('user', 'pass')"# authenticate to this DB.end# Start the Play frameworktab"play run"# Start Compass compiler processtab"compass watch"# Open a new tab in the correct project directory.tab"echo 'SCST Environment is ready to go...'"
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
To setup my full work environment I would ideally like to:
mongo
)mongo
client, waiting for input.use db_name
) then authenticate viadb.auth( 'user', 'pass' )
I could easily get step 1 and 2 accomplished but trying to then run code within Tab 2 is where I got stuck… is there any way this can be done?
Thanks for reading.
Below is my full script in case that helps which is run via
consular start scst
in Terminal.app (OSX 10.7)The text was updated successfully, but these errors were encountered: