{"id":20836310,"url":"https://github.com/igrigorik/heroku-buildpack-dart","last_synced_at":"2025-06-16T11:07:04.868Z","repository":{"id":3159601,"uuid":"4190065","full_name":"igrigorik/heroku-buildpack-dart","owner":"igrigorik","description":"Heroku buildpack for Dart","archived":false,"fork":false,"pushed_at":"2024-07-25T21:07:15.000Z","size":85,"stargazers_count":171,"open_issues_count":11,"forks_count":114,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-05-26T00:07:19.233Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/igrigorik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-05-01T06:09:48.000Z","updated_at":"2024-12-01T16:22:47.000Z","dependencies_parsed_at":"2024-12-16T06:02:03.153Z","dependency_job_id":null,"html_url":"https://github.com/igrigorik/heroku-buildpack-dart","commit_stats":{"total_commits":148,"total_committers":21,"mean_commits":"7.0476190476190474","dds":0.5675675675675675,"last_synced_commit":"3b5b40bcdd0114c931dea5097123410f95dc644a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/igrigorik/heroku-buildpack-dart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrigorik%2Fheroku-buildpack-dart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrigorik%2Fheroku-buildpack-dart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrigorik%2Fheroku-buildpack-dart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrigorik%2Fheroku-buildpack-dart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/igrigorik","download_url":"https://codeload.github.com/igrigorik/heroku-buildpack-dart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrigorik%2Fheroku-buildpack-dart/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260148392,"owners_count":22965912,"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":[],"created_at":"2024-11-18T00:29:29.579Z","updated_at":"2025-06-16T11:07:04.843Z","avatar_url":"https://github.com/igrigorik.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Heroku Buildpack: Dart\n\nThis is a Heroku buildpack for [Dart][].\n\n(Note: This buildpack requires that you use the\n[Cedar-14][cedar14] (Ubuntu 14.x-based) stack for your Heroku application.\nThis is now the default stack on Heroku.)\n\n## Features\n\n* Runs Dart VM as a server in Heroku's cloud\n* Installs packages with [pub][]\n* Builds the client app with [webdev build][build]\n\n## Getting Started\n\n(These instructions assume you have the\n[heroku tools](https://toolbelt.heroku.com/) and\n[git](http://git-scm.com/) installed, and that you have a heroku\naccount.)\n\nCreate a Heroku app, and specify both this buildpack and a\n[URL that points to a compiled Dart SDK][download].\n\nHere is a set of commands that deploys a minimal HTTP server built with Dart\nto Heroku:\n\n```bash\n$\u003e git clone https://github.com/igrigorik/heroku-buildpack-dart.git\n$\u003e mkdir myfirstdartappforheroku\n$\u003e cp -R heroku-buildpack-dart/test-app/* myfirstdartappforheroku\n$\u003e cd myfirstdartappforheroku\n$\u003e git init\n$\u003e git add -A .\n$\u003e git commit -am \"first commit\"\n$\u003e heroku create myfirstdartappforheroku\n$\u003e heroku config:set DART_SDK_URL=\u003carchive url\u003e\n$\u003e heroku config:add BUILDPACK_URL=https://github.com/igrigorik/heroku-buildpack-dart.git\n```\n\nPush the app to Heroku. Learn more about [deploying to Heroku with git][deploy].\n\n```bash\n$\u003e git push heroku master\n```\n\nYou may need to scale to one web dyno (aka server):\n\n```bash\n$\u003e heroku ps:scale web=1\n```\n\nTest your app! The URL is printed at the end of the `git push` step.\n\n## Configuration\n\n### Location of Dart SDK\n\nYou must specify a URL that points to a .zip that contains the Dart SDK.\nLinks to Dart SDKs built for Linux are [available][download].\n\n```bash\n$\u003e heroku config:set DART_SDK_URL=\u003carchive url\u003e\n```\n\n### Specifying the script\n\nCreate the file `Procfile` in the root of your package to define the file to run when the application starts. We\nrecommend to put the server script into your application's `bin/` directory.\n\nThe sample app's `Procfile` looks like:\n\n```\nweb: ./dart-sdk/bin/dart bin/basic_http_server.dart\n```\n\nAdd build_runner and build_web_compilers to you dev_dependencies in pubspec.yaml\n```\ndev_dependencies:\n  build_runner:\n  build_web_compilers: \n  ...\n```\n\n### Specifying the pubspect.yaml\n\nBy default every pubspec.yaml will be processed.\n\nYou can define the environment variable PUBSPEC_PATH to specify which pubspec.yaml to process.\n\n### Overriding the build command\n\nBy default `pub build` is launched after `pub get`, it can be useful to use\nanother command: for instance `pub build --mode=debug` or \n`/app/dart-sdk/bin/dart build.dart`:\n\n```bash\n$\u003e heroku config:set DART_BUILD_CMD=\"/app/dart-sdk/bin/dart build.dart\"\n```\n\n## Example \n\nSee `test-app` directory for the world simplest Dart web app running on\nHeroku.\n\n## Learning more\n\nDart VM can access files, directories, sockets, HTTP, web sockets, SSL, and\nmore. See the [dart:io library][io] for core functionality.\n\nDart's package repository, [pub][], hosts lots of options for more\nfunctionality, such as database drivers, HTTP server frameworks, templates,\nand more.\n\n## License\n\nThe MIT License - Copyright (c) 2012 Ilya Grigorik\n\n[io]: https://api.dartlang.org/docs/channels/stable/latest/dart_io.html\n[pub]: http://pub.dartlang.org\n[dart]: https://www.dartlang.org\n[build]: http://pub.dartlang.org/doc/pub-build.html\n[example]: https://github.com/igrigorik/heroku-buildpack-dart/tree/master/test-app\n[deploy]: https://devcenter.heroku.com/articles/git\n[envcompile]: https://devcenter.heroku.com/articles/labs-user-env-compile\n[buildforubuntu]: https://code.google.com/p/dart/wiki/BuildDartSDKOnUbuntu10_04\n[communitybuilds]: https://github.com/selkhateeb/heroku-vagrant-dart-build/releases\n[cedar14]: https://devcenter.heroku.com/articles/cedar-14-migration\n[download]: https://www.dartlang.org/install/archive\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figrigorik%2Fheroku-buildpack-dart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figrigorik%2Fheroku-buildpack-dart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figrigorik%2Fheroku-buildpack-dart/lists"}