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

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

4 comments on commit 2892fe3

@jchan202
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Ryan,

I tried this, and the deployment was successfully. However, when I viewed my app, it's a blank page. Here's the error:

Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.3.17/$injector/modulerr?p0=mean&p1=Error%3A%2…ean-jchan202-651.mybluemix.net%2Flib%2Fangular%2Fangular.min.js%3A17%3A381)

Any idea?

Thanks,
Jeff

@lirantal
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ryanjbaxter
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jchan202 @lirantal Same error as #861, see that issue

@codydaig
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jchan202 @lirantal @ryanjbaxter #864 solves this by defaulting to the default settings instead of overriding them and having to maintain them.

Please sign in to comment.