Skip to content
This repository was archived by the owner on Aug 30, 2021. It is now read-only.

Commit 2892fe3

Browse files
committed
Added Deploy To Bluemix button to the README
1 parent 3064b28 commit 2892fe3

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

.bluemix/pipeline.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
stages:
3+
- name: Build
4+
inputs:
5+
- type: git
6+
branch: master
7+
triggers:
8+
- type: commit
9+
jobs:
10+
- name: meanjs-build
11+
type: builder
12+
artifact_dir: ./
13+
build_type: grunt
14+
script: |-
15+
#!/bin/bash
16+
# Install RVM, Ruby, and SASS
17+
# Needed when running grunt build
18+
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
19+
curl -sSL https://get.rvm.io | bash -s stable --ruby --gems=sass
20+
# Start RVM
21+
source /home/jenkins/.rvm/scripts/rvm
22+
# Build MEANJS
23+
npm install
24+
grunt build
25+
- name: Deploy
26+
inputs:
27+
- type: job
28+
stage: Build
29+
job: meanjs-build
30+
jobs:
31+
- name: Deploy
32+
type: deployer
33+
target:
34+
url: ${CF_TARGET_URL}
35+
organization: ${CF_ORGANIZATION}
36+
space: ${CF_SPACE}
37+
application: ${CF_APP}
38+
script: |-
39+
#!/bin/bash
40+
cf push
41+
# view logs
42+
#cf logs "${CF_APP}" --recent

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,17 @@ After `cf push` completes you will see the URL to your running MEANJS applicatio
199199

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

202+
### Deploying MEANJS To IBM Bluemix
203+
IBM Bluemix is a Cloud Foundry based PaaS. By clicking the button below you can signup for Bluemix and deploy
204+
a working copy of MEANJS to the cloud without having to do the steps above.
205+
206+
[![Deploy to Bluemix](https://bluemix.net/deploy/button.png)](https://bluemix.net/deploy?repository=https%3A%2F%2Fgithub.com%2Fmeanjs%2Fmean)
207+
208+
After the deployment is finished you will be left with a copy of the MEANJS code in your own private Git repo
209+
in Bluemix complete with a pre-configured build and deploy pipeline. Just clone the Git repo, make your changes, and
210+
commit them back. Once your changes are committed, the build and deploy pipeline will run automatically deploying
211+
your changes to Bluemix.
212+
202213
## Credits
203214
Inspired by the great work of [Madhusudhan Srinivasa](https://github.com/madhums/)
204215
The MEAN name was coined by [Valeri Karpov](http://blog.mongodb.org/post/49262866911/the-mean-stack-mongodb-expressjs-angularjs-and)

0 commit comments

Comments
 (0)