#Plus More
Open two terminal windows. In the first window run:
make mongod
In the second window run:
mongo
> var config = {_id: "plusmore", members: [{_id: 0, host: "127.0.0.1:27017"}]}
> rs.initiate(config)
Each app is in it's own subdirectory. cd
into the app you want to run, and run make start
~/dev
/plusmore
/super
/subproject1
/subproject2
/subproject3
/subproject1 // for attaching to super project
/subproject2
/subproject3
/other-stuff
gits attach ../repo repo // have master repo in parent folder of super project
gits checkout -b branch-name
gits // same as git but across all projects
add
commit
push
Start by creating a new repository on GitHub under the Plus More organization
Next, add it as a submodule to the plus-more project.
git submodule add git@github.com:PlusMore/<projectName>.git
Just cd
into the new subdirectory and code away.
Follow these instructions.
NODE_ENV production
MONGO_URL mongodb://plusmore:<password>@candidate.11.mongolayer.com:10410/plusmore
MONGO_OPLOG_URL mongodb://oplogger:<password>@candidate.0.mongolayer.com:10412,candidate.11.mongolayer.com:10410/local?authSource=plusmore
PORT 80
ROOT_URL {{urlFromSetup}}
MAIL_URL smtp://postmaster%40plusmoretablets.com:<password>@smtp.mailgun.org:587
Make sure to run modulus project restart
after any changes to environment variables.