{"id":19874536,"url":"https://github.com/strongloop/strongloop-buildpacks","last_synced_at":"2025-05-02T10:31:24.007Z","repository":{"id":12279686,"uuid":"14903586","full_name":"strongloop/strongloop-buildpacks","owner":"strongloop","description":null,"archived":false,"fork":false,"pushed_at":"2016-07-14T00:41:47.000Z","size":279,"stargazers_count":19,"open_issues_count":6,"forks_count":26,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-04-07T01:05:41.306Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/strongloop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-03T19:32:52.000Z","updated_at":"2018-11-26T04:09:11.000Z","dependencies_parsed_at":"2022-08-20T18:20:50.582Z","dependency_job_id":null,"html_url":"https://github.com/strongloop/strongloop-buildpacks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Fstrongloop-buildpacks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Fstrongloop-buildpacks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Fstrongloop-buildpacks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Fstrongloop-buildpacks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/strongloop","download_url":"https://codeload.github.com/strongloop/strongloop-buildpacks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252023269,"owners_count":21682153,"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-12T16:23:56.470Z","updated_at":"2025-05-02T10:31:23.653Z","avatar_url":"https://github.com/strongloop.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"StrongLoop provides:\n\n * LoopBack, an open-source Node.js framework that enables you to create dynamic end-to-end REST APIs with little or no coding. For more information, see http://loopback.io.\n * StrongLoop Controller, a Node devops system.  See [StrongLoop Controller docs](http://docs.strongloop.com/display/SLC/StrongLoop+Controller) for more information.\n * StrongLoop Agent (StrongOps), an operational console for Node.js applications that provides deep performance monitoring including CPU profiling, event loop statistics, and more.  See [StrongLoop Agent docs](http://docs.strongloop.com/pages/viewpage.action?pageId=3834736) for more information.\n\nThe StrongLoop Heroku Buildpack installs the StrongLoop Controller command-line tool (slc) and the add-on provisions a\n [StrongOps](http://www.strongloop.com/ops) monitoring account.\n\n## Prerequisites\n\nBefore starting, on your local system:\n\n - If you have not already done so, install Node.js : [Download native installers](http://nodejs.org/download)\n for Windows or Mac OS; for Linux,\n see [Installing Node.js via package manager](https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager).\n - Install StrongLoop software:\n   ```term\n   $  npm install -g strongloop\n   ```\n - Make sure you have installed the [Heroku Toolbelt](https://toolbelt.heroku.com/).\n\n## Create your app\n\nFollow the instructions in \n[Getting started with LoopBack](http://docs.strongloop.com/display/LB/Getting+started+with+LoopBack) to create a LoopBack application.\n\nJust enter:\n\n```term\n$ slc loopback\n```\n\nYou'll be prompted to pick a name and directory for the new application; for example, if you entered `myapp` for the application and\ndirectory name:\n\n```\n$ cd myapp\n```\nUpdate `package.json` to add the following line so the app will use the latest stable version of Node.js:\n\n```term\n...\n    \"engines\": {\n        \"node\": \"0.10.x\"\n    }\n...\n```\n\nThen create a Git repository and commit your code:\n\n```term\n$ git init\n$ git add . \n$ git commit -m \"init\"\n```\n\n## Heroku setup\n\nCreate a Procfile in the root directory of your app that contains the following: \n\n    web: slc run \n\nMake sure you add the Procfile to your repository:\n\n```term\n$ git add Procfile \n$ git commit -m \"adding Procfile\"\n```\n\n### Get the buildpack\n\nLogin with the Heroku command line:\n\n```term\n$ heroku login\n```\n\nCreate your Heroku app using the buildpack. When it completes, push to Heroku\nmaster to complete the installation of StrongLoop on your dyno.\n\n```term\n$ heroku apps:create --buildpack https://github.com/strongloop/strongloop-buildpacks.git\n$ git push heroku master\n```\n\nTest it out\n\n```term\n$ heroku open\n```\n\n### How to check your dashboard on Heroku\nOnce you have created your app, its time to look at the instrumentation. \nNavigate to the [Heroku dashboard](https://dashboard.heroku.com)\nand find your app. Once you've found your app, click on **Heroku app dashboard** to\nview the various dynos and add-ons for your app. Click on the StrongLoop add-on to view the StrongOps Control Panel.\nThe StrongLoop Ops dashboard is\naccessible by clicking on the grey button \"StrongOps Dashboard\".\n\nThe dashboard can also be accessed via the CLI:\n\n```term\n$ heroku addons:open strongloop\nOpening strongloop for sharp-mountain-4005…\n```\n\n## Run your app in a cluster\n\nTo run your application in a cluster, update the start command in the Procfile:\n\n```term\n$ web: slc run --cluster \u003cn\u003e\n```\n\nWhere `\u003cn\u003e` is a postive integer indicating the number of worker processes to use.\n\nCommit your changes and redeploy the app:\n\n```term\n$ git add Procfile\n$ git commit -m \"Started clustered app\" Procfile\n$ git push heroku master\n```\n\nOnce you have set this up, you can control the cluster through the StrongLoop dashboard: simply click on the **Cluster** tab.\n\n## Collect application metrics\n\nTo collect metrics to send to a StatsD server, update the start command in the Procfile:\n\n```term\n$ web: slc run --metrics \u003cstatsd-url\u003e\n```\n\nWhere `\u003cstatsd-url\u003e` is the URL of your StatsD server with format `statsd:[//host[:port]][/scope]`.\n\nCommit your changes and redeploy the app:\n\n```term\n$ git add Procfile\n$ git commit -m \"Collect metrics using strong-agent\" Procfile\n$ git push heroku master\n```\nFor more information on how to use the StrongLoop Agent API to get performance metrics, see\n[On-premises monitoring](http://docs.strongloop.com/display/SLA/On-premises+monitoring).\n\n## Troubleshooting\n\nAfter configuration, StrongOps is automatic. If you should experience any issues, please let us know immediately by\n[email](mailto:callback@strongloop.com)\n\n## Migrating between plans\n\n**NOTE: Carefully manage the migration timing to ensure proper application function during the migration process.**\n\nUse the `heroku addons:upgrade` command to migrate to a new plan.\n\n```term\n$ heroku addons:upgrade strongloop:newplan\n-----\u003e Upgrading strongloop:newplan to sharp-mountain-4005... done, v18 ($49/mo)\n       Your plan has been updated to: strongloop:newplan\n```\n\n## Removing the add-on\n\nRemove StrongOps with the following command.\n\n**WARNING: This will destroy all associated data and cannot be undone!**\n\n```term\n$ heroku addons:remove strongloop\n-----\u003e Removing strongloop from sharp-mountain-4005... done, v20 (free)\n```\n\n## Support\n\nSubmit all StrongOps support and runtime issues via the [Heroku Support channels](support-channels).\nAny non-support related issues or product feedback is welcome at [callback@strongloop.com](mailto:callback@strongloop.com). \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrongloop%2Fstrongloop-buildpacks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrongloop%2Fstrongloop-buildpacks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrongloop%2Fstrongloop-buildpacks/lists"}