Upload
ngoc-nghia-nguyen
View
14
Download
0
Embed Size (px)
DESCRIPTION
rf
Citation preview
Ngày 27 tháng 8 năm 2014 IBM Bluemix Docs
https://www.ng.bluemix.net/docs/#starters/rails/index.html#rails 1/2
Creating Apps > Runtimes > Ruby on Rails
Creating apps with Ruby on RailsLast Updated: 8/25/2014
IBM® Bluemix™ provides a Ruby on Rails starter application as a template so that you can add your code and push the changes back to the
environment. The Ruby on Rails runtime environment is the container for this type of applications.
About the Ruby on Rails starter application
This Ruby on Rails starter application is a boilerplate for Bluemix Ruby on Rails web application development.
It displays the current system environment variables and demonstrates how to develop and deploy a Ruby on Rails web application for
Usage
Use the following steps to start using the Ruby on Rails starter application from the Bluemix user interface:
1. Create a Ruby on Rails starter application and download the starter code.
a. Click Create App to deploy a Ruby on Rails starter application.
b. Provide the App name and Host in the prompt.
c. After the application deploys, click the View Quick Start button.
d. Download the starter application package.
2. Ensure that the cf command line tool is installed.
This tool is a command line interface for application deployment and management on Bluemix.
3. Log in to the Bluemix environment.
$ cf login -a https://api.ng.bluemix.net -o <your org name> -s <your space name>
API endpoint: https://api.ng.bluemix.net
Username> <your user ID>
Password>*******
Authenticating...
OK
Targeted org <your org name>
Targeted space dev
API endpoint: https://api.ng.bluemix.net (API version: 2.0.0)
User: <your user ID>
Org: <your org name>
Space: <your space name>
RELATED LINKS
Heroku buildpack: Ruby
Ruby on Rails documentation
Cloud Foundry CLI
IBM Bluemix Pricing Sheet
IBM Bluemix Prerequisites
Type to search
≡ IBM Bluemix Docs
Building a web app
Building a mobile app
BOILERPLATES
Java Cloudant Web Starter
Java DB Web Starter
Java Web Starter
Mobile Cloud
Node JS Web Starter
Node-RED Starter
RUNTIMES
Liberty for Java
SDK for Node.js
Ruby on Rails
Ruby Sinatra
Creating Apps
Ngày 27 tháng 8 năm 2014 IBM Bluemix Docs
https://www.ng.bluemix.net/docs/#starters/rails/index.html#rails 2/2
4. Modify the application and deploy again.
In the starter application package, a README file describes each file. Make changes to the code, deploy the application again, then see the effect.
To deploy your modified application to Bluemix, use the cf command. For example:
$ cf push <yourappname> -p pathtoApp -m 512M
5. Access your application.
After your application is deployed, open the URL in a browser to see it running.
http://<yourappname>.mybluemix.net
6. Start using services.
There are many services available in Bluemix to make your application more powerful. You can add any available services to your application. See
each service document for more information.