Git Product home page Git Product logo

Comments (3)

fangpenlin avatar fangpenlin commented on August 22, 2024

Okay, I just deployed it to my EC2 instance

http://ec2-54-219-21-15.us-west-1.compute.amazonaws.com

To run integration testing against it, you can run

export BILLY_TEST_URL=http://ec2-54-219-21-15.us-west-1.compute.amazonaws.com
export BILLY_TEST_PROCESSOR_KEY=MY_SECRET_KEY_HERE
export BILLY_TEST_MARKETPLACE_URI=/v1/marketplaces/TEST-MP_MY_MARKETPLACE
nosetests billy/tests/integration

This could subscribe recurring charging to a new credit card.

2013-09-03 12 47 42

from billy.

fangpenlin avatar fangpenlin commented on August 22, 2024

To deploy via Chef

Mainly reference to http://www.captnswing.net/2013/01/from-vagrant-to-ec2-with-knife-solo.html

Clone the billy project

git clone https://github.com/victorlin/billy.git

clone chef submodule

git submodule init
git submodule update

cd to the chef folder

cd billy/chef

install knife solo and ec2 plugins

gem install knife-ec2 knife-solo

create new ec2 instance, Ubuntu 12.04.1 LTS (Precise Pangolin)

export AWS_ACCESS_KEY=YOUR_KEY
export AWS_SECRET_KEY=YOUR_SECRET_KEY
export EC2_REGION=us-west-1
export EC2_AVAILABILITY_ZONE=us-west-1c
knife ec2 server create -S <your_key_pair> -I ami-827252c7 -G default --flavor=m1.large

(find corresponding Ubuntu image id here http://cloud-images.ubuntu.com/releases/precise/release-20121218/)

prepare chef

knife prepare ec2-xx-xx-xx-xx.us-west-1.compute.amazonaws.com

copy and modify the node configuration file

cp nodes/ec2.json.example nodes/ec2-xx-xx-xx-xx.us-west-1.compute.amazonaws.com.json
vim nodes/ec2-xx-xx-xx-xx.us-west-1.compute.amazonaws.com.json

Okay! Finally, let's cook

knife cook ec2-xx-xx-xx-xx.us-west-1.compute.amazonaws.com

and run the integration test against it

export BILLY_TEST_URL=http://ec2-xx-xx-xx-xx.us-west-1.compute.amazonaws.com
export BILLY_TEST_PROCESSOR_KEY=MY_SECRET_KEY_HERE
export BILLY_TEST_MARKETPLACE_URI=/v1/marketplaces/TEST-MP_MY_MARKETPLACE
cd ..
nosetests billy/tests/integration

done!

from billy.

nodesocket avatar nodesocket commented on August 22, 2024

Amazing work @victorlin

from billy.

Related Issues (20)

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.