Skip to content

Commit

Permalink
fix readme example formats
Browse files Browse the repository at this point in the history
  • Loading branch information
drnic committed Aug 10, 2014
1 parent 51ebeb5 commit 3a47b06
Showing 1 changed file with 18 additions and 24 deletions.
42 changes: 18 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,72 +37,66 @@ bob:$apr1$DuUQEQp8$ZccZCHQElNSjrg.erwSFC0

Push your application to apply changes to basic auth. Remove the file and push to disable basic auth.

Upload
======
Adminstrator Upload
===================

Adminstrators can upload this buildpack for everyone to automatically use.
Everyone can automatically use this buildpack if your Cloud Foundry Adminstrator uploads it.

```
zip -r ../staticfile-buildpack.zip * cf create-buildpack staticfiles_buildpack ../staticfile-buildpack.zip 1
zip -r ../staticfile-buildpack.zip *
cf create-buildpack staticfiles_buildpack ../staticfile-buildpack.zip 1
```

Subsequently, update the buildpack with:

```
zip -r ../staticfile-buildpack.zip * cf update-buildpack staticfiles_buildpack -p ../staticfile-buildpack.zip -i 1
zip -r ../staticfile-buildpack.zip *
cf update-buildpack staticfiles_buildpack -p ../staticfile-buildpack.zip -i 1
```

Test that it correctly detects the buildpack:

```
cf push staticfile -p test/fixtures/staticfile_app ... Staging failed: An application could not be detected by any available buildpack
cf push staticfile -p test/fixtures/staticfile_app
...
Staging failed: An application could not be detected by any available buildpack
```

Test that it correctly ignores the buildpack if `Staticfile` file is missing:

```
cf push non_staticfile_app -p test/fixtures/non_staticfile_app
```

Local development
=================

```
cf push staticfile -p test/fixtures/staticfile_app -b https://github.com/drnic/staticfile-buildpack.git
```

Building Nginx
==============

```
vagrant up vagrant ssh
```

vagrant up
vagrant ssh
```

cd /vagrant ./bin/build_nginx exit
Inside vagrant:

```
cd /vagrant
./bin/build_nginx exit
```

Nginx will be stuffed into a tarball in the `vendor/` folder.

Finally, destroy the vagrant VM:

```
vagrant destroy```
vagrant destroy
```

Acknowledgements
================
Expand Down

0 comments on commit 3a47b06

Please sign in to comment.