Skip to content

Commit 6119de2

Browse files
committed
new deploy button functionality
1 parent 2ea1ce5 commit 6119de2

File tree

1 file changed

+42
-42
lines changed

1 file changed

+42
-42
lines changed

README.md

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -9,48 +9,48 @@ Simply upload a line-separated file of text (e.g. tweets), and it will add each
99

1010
Give it a try! Click the button below to fork into IBM DevOps Services and deploy your own copy of this application on Bluemix.
1111

12-
[![Deploy to Bluemix](images/deploy-button.png)](https://hub.jazz.net/code/cfui/bluemix/deploy.html?Repository=https://github.com/ibmjstart/bluemix-node-mysql-uploader.git)
12+
[![Deploy to Bluemix](images/deploy-button.png)](https://bluemix.net/deploy?repository=https://github.com/ibmjstart/bluemix-node-mysql-uploader.git)
1313

14-
Enjoy! (note, it may take minute or so for the app to start)
14+
Enjoy! (note, it may take minute or so for the app to start)
1515

1616
___
17-
18-
### [Alternative] Deploying the App Via the Command-Line ###
19-
20-
#### Prerequisites ####
21-
22-
Before we begin, we first need to install the [**cf**](https://github.com/cloudfoundry/cli/releases) command line tool that will be used to upload and manage your application. If you've previously installed an older version of the cf tool, make sure you are now using v6 of cf by passing it the -v flag:
23-
24-
cf -v
25-
26-
#### Steps ####
27-
In the terminal, go into the root directory, and follow these steps.
28-
29-
1. Login to Bluemix.
30-
31-
| *usage:* | `$ cf login [-a API_URL] [-o ORG] [-s SPACE]`|
32-
|------------|----------------------------------------------|
33-
| *example:* | `$ cf login -a https://api.ng.bluemix.net` |
34-
35-
2. Create an instance of the mySQL service, giving it the name "mysql-database" in the last arguement. Note, if a different name is desired, then the manifest.yml file needs to be changed accordingly.
36-
37-
| *usage:* | `$ cf create-service SERVICE PLAN SERVICE_INSTANCE`|
38-
|------------|----------------------------------------------------|
39-
| *example:* | `$ cf create-service mysql 100 mysql-database` |
40-
41-
3. From the root directory that contains this *README.md* file, push the app like below. Be sure to give your app a unique APP_NAME to be used for its hostname. For instance the example below would result in http://myupload-<username>.ng.bluemix.net.
42-
43-
| *usage:* | `$ cf push APP_NAME` |
44-
|------------|----------------------------------|
45-
| *example:* | `$ cf push myupload-<username>` |
46-
47-
Congratulations, the app should be running on Bluemix.
48-
49-
___
50-
51-
### License ###
52-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
53-
54-
http://www.apache.org/licenses/LICENSE-2.0
55-
56-
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
17+
18+
### [Alternative] Deploying the App Via the Command-Line ###
19+
20+
#### Prerequisites ####
21+
22+
Before we begin, we first need to install the [**cf**](https://github.com/cloudfoundry/cli/releases) command line tool that will be used to upload and manage your application. If you've previously installed an older version of the cf tool, make sure you are now using v6 of cf by passing it the -v flag:
23+
24+
cf -v
25+
26+
#### Steps ####
27+
In the terminal, go into the root directory, and follow these steps.
28+
29+
1. Login to Bluemix.
30+
31+
| *usage:* | `$ cf login [-a API_URL] [-o ORG] [-s SPACE]`|
32+
|------------|----------------------------------------------|
33+
| *example:* | `$ cf login -a https://api.ng.bluemix.net` |
34+
35+
2. Create an instance of the mySQL service, giving it the name "mysql-database" in the last arguement. Note, if a different name is desired, then the manifest.yml file needs to be changed accordingly.
36+
37+
| *usage:* | `$ cf create-service SERVICE PLAN SERVICE_INSTANCE`|
38+
|------------|----------------------------------------------------|
39+
| *example:* | `$ cf create-service mysql 100 mysql-database` |
40+
41+
3. From the root directory that contains this *README.md* file, push the app like below. Be sure to give your app a unique APP_NAME to be used for its hostname. For instance the example below would result in http://myupload-&lt;username&gt;.ng.bluemix.net.
42+
43+
| *usage:* | `$ cf push APP_NAME` |
44+
|------------|----------------------------------|
45+
| *example:* | `$ cf push myupload-<username>` |
46+
47+
Congratulations, the app should be running on Bluemix.
48+
49+
___
50+
51+
### License ###
52+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
53+
54+
http://www.apache.org/licenses/LICENSE-2.0
55+
56+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

0 commit comments

Comments
 (0)