Giter VIP home page Giter VIP logo

pcf-demo-blog's Introduction

pcf-demo-blog

Padrino Blog to use with Pivotal Cloud Foundry (PCF). The purpose of this Demo is to show PCFs ability to work with poliglot applications, this time it is a Padrino (Ruby) Application. This demo can be run anywhere on a running PCF Instance, whether it is local (https://network.pivotal.io/products/pcfdev) or on PWS (http://run.pivotal.io) or your hosted instance. Please make sure the elephantsql tile has been installed or adapt the config/database.rb to another DB of your choice.

Installation

Create service

Create a new service instance for elephantsql named smallelephant. This can be done using the web interface or by using the cf commandline: cf create-service elephantsql turtle smallelephant where turtle is the plan you may want to choose (turtle is the free plan on PWS). Any changes to the service name should be reflected in the manifest.yml. This service will then be bound automatically.

Migrate the database

https://docs.pivotal.io/pivotalcf/1-7/devguide/services/migrate-db.html is a pretty complete and comprehensive guide on how to migrate a database. If you do not want to automate this as described there, something like cf push -c 'rake sq:migrate' -i 1 followed by a cf push -c 'rake db:seed' -i 1 should work. cf push -c 'null' will then start the application as usual.

Hints & Tips

Any changes to work with PCF are documented in the database.rb, this demo uses the https://github.com/cloudfoundry/cf-app-utils-ruby gem. Some hints how to make this work without this gem have been added.

pcf-demo-blog's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.