This repository has been archived by the owner on Aug 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Deploy To Bluemix button to the README
- Loading branch information
1 parent
3064b28
commit 2892fe3
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2892fe3
There was a problem hiding this comment.
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
2892fe3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ping @ryanjbaxter
2892fe3
There was a problem hiding this comment.
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
2892fe3
There was a problem hiding this comment.
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.