Skip to content

Commit

Permalink
Added Deploy To Bluemix button to the README
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanjbaxter committed Aug 12, 2015
1 parent 3064b28 commit 2892fe3
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .bluemix/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
stages:
- name: Build
inputs:
- type: git
branch: master
triggers:
- type: commit
jobs:
- name: meanjs-build
type: builder
artifact_dir: ./
build_type: grunt
script: |-
#!/bin/bash
# Install RVM, Ruby, and SASS
# Needed when running grunt build
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
curl -sSL https://get.rvm.io | bash -s stable --ruby --gems=sass
# Start RVM
source /home/jenkins/.rvm/scripts/rvm
# Build MEANJS
npm install
grunt build
- name: Deploy
inputs:
- type: job
stage: Build
job: meanjs-build
jobs:
- name: Deploy
type: deployer
target:
url: ${CF_TARGET_URL}
organization: ${CF_ORGANIZATION}
space: ${CF_SPACE}
application: ${CF_APP}
script: |-
#!/bin/bash
cf push
# view logs
#cf logs "${CF_APP}" --recent
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,17 @@ After `cf push` completes you will see the URL to your running MEANJS applicatio

Open your browser and go to that URL and your should see your MEANJS app running!

### Deploying MEANJS To IBM Bluemix
IBM Bluemix is a Cloud Foundry based PaaS. By clicking the button below you can signup for Bluemix and deploy
a working copy of MEANJS to the cloud without having to do the steps above.

[![Deploy to Bluemix](https://bluemix.net/deploy/button.png)](https://bluemix.net/deploy?repository=https%3A%2F%2Fgithub.com%2Fmeanjs%2Fmean)

After the deployment is finished you will be left with a copy of the MEANJS code in your own private Git repo
in Bluemix complete with a pre-configured build and deploy pipeline. Just clone the Git repo, make your changes, and
commit them back. Once your changes are committed, the build and deploy pipeline will run automatically deploying
your changes to Bluemix.

## Credits
Inspired by the great work of [Madhusudhan Srinivasa](https://github.com/madhums/)
The MEAN name was coined by [Valeri Karpov](http://blog.mongodb.org/post/49262866911/the-mean-stack-mongodb-expressjs-angularjs-and)
Expand Down

0 comments on commit 2892fe3

Please sign in to comment.