This repository was archived by the owner on Aug 30, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +53
-0
lines changed Expand file tree Collapse file tree 2 files changed +53
-0
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -199,6 +199,17 @@ After `cf push` completes you will see the URL to your running MEANJS applicatio
199
199
200
200
Open your browser and go to that URL and your should see your MEANJS app running!
201
201
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
+
202
213
## Credits
203
214
Inspired by the great work of [ Madhusudhan Srinivasa] ( https://github.com/madhums/ )
204
215
The MEAN name was coined by [ Valeri Karpov] ( http://blog.mongodb.org/post/49262866911/the-mean-stack-mongodb-expressjs-angularjs-and )
You can’t perform that action at this time.
0 commit comments