{"id":13800019,"url":"https://github.com/cloudfoundry/staticfile-buildpack","last_synced_at":"2025-05-15T11:08:22.413Z","repository":{"id":19550025,"uuid":"22798547","full_name":"cloudfoundry/staticfile-buildpack","owner":"cloudfoundry","description":"Deploy static HTML/JS/CSS apps to Cloud Foundry","archived":false,"fork":false,"pushed_at":"2025-04-16T13:30:50.000Z","size":52040,"stargazers_count":199,"open_issues_count":9,"forks_count":325,"subscribers_count":51,"default_branch":"master","last_synced_at":"2025-04-24T14:04:45.105Z","etag":null,"topics":["v2b"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudfoundry.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-08-10T01:01:27.000Z","updated_at":"2025-04-02T11:47:57.000Z","dependencies_parsed_at":"2023-01-16T21:45:52.926Z","dependency_job_id":"d0b79f65-5099-4109-8b3c-d1788c353088","html_url":"https://github.com/cloudfoundry/staticfile-buildpack","commit_stats":{"total_commits":1200,"total_committers":110,"mean_commits":"10.909090909090908","dds":0.5308333333333333,"last_synced_commit":"12e9ac951091da23a288a83ad9916fd45f1881c9"},"previous_names":[],"tags_count":146,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry%2Fstaticfile-buildpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry%2Fstaticfile-buildpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry%2Fstaticfile-buildpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry%2Fstaticfile-buildpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudfoundry","download_url":"https://codeload.github.com/cloudfoundry/staticfile-buildpack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254328384,"owners_count":22052632,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["v2b"],"created_at":"2024-08-04T00:01:08.355Z","updated_at":"2025-05-15T11:08:22.395Z","avatar_url":"https://github.com/cloudfoundry.png","language":"Go","readme":"# Cloud Foundry Staticfile Buildpack\n\n[![CF Slack](https://www.google.com/s2/favicons?domain=www.slack.com) Join us on Slack](https://cloudfoundry.slack.com/messages/buildpacks/)\n\nA Cloud Foundry [buildpack](https://docs.cloudfoundry.org/buildpacks/) for static content such as websites (HTML/JS/CSS).\n\n### Buildpack User Documentation\n\nOfficial buildpack documentation can be found at [staticfile buildpack docs](https://docs.cloudfoundry.org/buildpacks/staticfile/index.html).\n\n### Building the Buildpack\n\nTo build this buildpack, run the following commands from the buildpack's directory:\n\n1. Source the .envrc file in the buildpack directory.\n\n   ```bash\n   source .envrc\n   ```\n   To simplify the process in the future, install [direnv](https://direnv.net/) which will automatically source .envrc when you change directories.\n\n1. Install buildpack-packager\n\n    ```bash\n    go install github.com/cloudfoundry/libbuildpack/packager/buildpack-packager\n    ```\n\n1. Build the buildpack\n\n    ```bash\n    buildpack-packager build [ --cached=(true|false) ]\n    ```\n\n1. Use in Cloud Foundry\n\n   Upload the buildpack to your Cloud Foundry and optionally specify it by name\n\n    ```bash\n    cf create-buildpack [BUILDPACK_NAME] [BUILDPACK_ZIP_FILE_PATH] 1\n    cf push my_app [-b BUILDPACK_NAME]\n    ```\n\n### Testing\n\nTo test this buildpack, run the following commands from the buildpack's directory:\n\n1. Source the .envrc file in the buildpack directory.\n\n   ```bash\n   source .envrc\n   ```\n   To simplify the process in the future, install [direnv](https://direnv.net/) which will automatically source .envrc when you change directories.\n\n1. Run unit tests\n\n    ```bash\n    ./scripts/unit.sh\n    ```\n\n1. Run integration tests\n\n   Buildpacks use the [Cutlass](https://github.com/cloudfoundry/libbuildpack/tree/master/cutlass) framework for running integration tests against Cloud Foundry. Before running the integration tests, you need to login to your Cloud Foundry using the [cf cli](https://github.com/cloudfoundry/cli):\n\n    ```bash\n    cf login -a https://api.your-cf.com -u name@example.com -p pa55woRD\n    ```\n\n   Note that your user requires permissions to run `cf create-buildpack` and `cf update-buildpack`. To run the integration tests, run the following command from the buildpack's directory:\n\n    ```bash\n    ./scripts/integration.sh\n    ```\n\nMore information can be found on [here](https://github.com/cloudfoundry/libbuildpack/tree/master/cutlass).\n\n### Contributing\n\nFind our guidelines [here](./CONTRIBUTING.md).\n\n### Help and Support\n\nJoin the #buildpacks channel in our [Slack community](https://slack.cloudfoundry.org/) if you need any further assistance.\n\n### Reporting Issues\n\nOpen a GitHub issue on this project [here](https://github.com/cloudfoundry/staticfile/issues/new).\n\n### Active Development\n\nThe project backlog is on [Pivotal Tracker](https://www.pivotaltracker.com/projects/1042066).\n\n### Acknowledgements\n\nThis buildpack is based heavily upon Jordon Bedwell's Heroku buildpack and the modifications by David Laing for Cloud Foundry [nginx-buildpack (deprecated)](https://github.com/cloudfoundry-community/nginx-buildpack). It has been tuned for usability (configurable with `Staticfile`) and to be included as a default buildpack (detects `Staticfile` rather than the presence of an `index.html`). Thanks for the buildpack Jordon!\nIf you require additional custom NGINX configuration, use the new [nginx-buildpack](https://github.com/cloudfoundry/nginx-buildpack).\n\n","funding_links":[],"categories":["Platform"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudfoundry%2Fstaticfile-buildpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudfoundry%2Fstaticfile-buildpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudfoundry%2Fstaticfile-buildpack/lists"}