https://github.com/fennec-framework/heroku-buildpack
https://github.com/fennec-framework/heroku-buildpack
Last synced: 30 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/fennec-framework/heroku-buildpack
- Owner: Fennec-Framework
- License: apache-2.0
- Created: 2022-06-19T15:35:55.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-19T18:31:10.000Z (almost 4 years ago)
- Last Synced: 2025-03-20T14:47:02.740Z (about 1 year ago)
- Language: Dart
- Size: 23.4 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# a heroku-buildpack to deploy fennec framework to heroku cloud
# how to use it
- **Create a new Heroku app**
you can use the the GUI or CLI via running that on terminal: heroku create name_app. after creating the app , you need to initialize your project with github.
git init
git add remote heroku https://git.heroku.com/app_name.git
- **create a file named Procfile with the path for your main file**
example of content : web: ./dart-sdk/bin/dart bin/fennec_heroku_example.dart
- **config DART_SDK_URL for dart**
for heroku you need to use a dart sdk url for linux from here https://dart.dev/get-dart/archive
used link for this example : https://storage.googleapis.com/dart-archive/channels/stable/release/2.17.3/sdk/dartsdk-linux-x64-release.zip
run this on termin : heroku config:set DART_SDK_URL =
- **config BUILDPACK_URL**
run this on termin : heroku config:add BUILDPACK_URL=https://github.com/Fennec-Framework/heroku-buildpack.git
- **deploy**
git add . # Adds all files to git in this repository
git push --set-upstream heroku main # Sets the upstream branch to heroku main and pushes all files
- **useful links:**
- https://flutter-explained.dev/deploy-dart-server-on-heroku
- https://codeburst.io/deploying-dart-2-apps-on-heroku-27fa120f1ec4