GithubHelp home page GithubHelp logo

heroku-buildpack-meteor's Introduction

Heroku buildpack for meteor

Usage

% heroku create --buildpack https://github.com/jordansissel/heroku-buildpack-meteor.git

Example

Create a sample app with 'meteor'

% meteor create --example todos
todos: created.

To run your new app:
   cd todos
   meteor

Put it in git.

% cd todos
% git init
Initialized empty Git repository in /tmp/a/todos/.git/
% git add .
% git commit -m "Sample todos app!"

Create your heroku app

% heroku create --buildpack https://github.com/jordansissel/heroku-buildpack-meteor.git

Or if your Heroku app already exists

% heroku buildpacks:set https://github.com/jordansissel/heroku-buildpack-meteor.git

Configure your plugins & settings

% heroku addons:create mongolab:sandbox  # optional: use whatever mongo provider you prefer
% heroku config:add MONGO_URL=<insert_value_of_MONGOLAB_URI_here>
% heroku config:add ROOT_URL=<insert_url_created_above_here>

Add session affinity so your app will still work with more than one dyno

% heroku labs:enable http-session-affinity

Optional step, if you are using a settings.json file to configure your Meteor application

% heroku config:add METEOR_SETTINGS="$(cat settings.json)"

Deploy it

% git push heroku master

Enjoy!

heroku-buildpack-meteor's People

Contributors

asfaltboy avatar brad avatar camstuart avatar gdumitrescu avatar idris avatar jfenton avatar jordansissel avatar leonardykris avatar martriay avatar ravivmg avatar wfleming avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

heroku-buildpack-meteor's Issues

Heroku hangs

Failed to load resource

GET https://myapp.herokuapp.com/favicon.ico 503 (Service Unavailable)

which are in my public/favicons, but Heroku cannot find it? So if it is not an issue but Heroku cannot find it then not sure how to resolve it?

is it possible to run meteor shell?

Hi,
It would be really useful to run the meteor shell on heroku. Is it possible? Running heroku run meteor shell does not work. Because the app is built? Is there a fix?

ReferenceError: Npm is not defined (0.6.0+)

When pushing to Heroku my App returns the following error:

var require = Npm.require;
at Array.forEach (native)
ReferenceError: Npm is not defined
at /app/.meteor/local/build/server/server.js:245:21
at Function._.each._.forEach (/app/.meteor/local/build/server/node_modules/underscore/underscore.js:79:11)
at run (/app/.meteor/local/build/server/server.js:231:7)

the code that fails is the following:

var require = Npm.require;
var Fiber = require('fibers');

I have tried using the fork metioned in #14 but with no success.

Documentation update

Hi,

Deploy command should be
% git push heroku master
instead of
% git push heroku

Heroku push rejected

Followed the readme. I did heroku addons:add mongohq:sandbox too

But I get the following error when I push:

Heroku push rejected, failure releasing code

and in the log:

heroku[slugc]: Slug compilation started
heroku[slugc]: Slug compilation failed: failure releasing code

Anyone have any suggestions?

Failing to start on Heroku due to new Meteor v0.8.18 dependency (critical)

Hi,

On January 30th, a commit was made to Meteor to bump the MIN_NODE_VERSION to v0.8.18. This is now causing heroku-buildpack-meteor setups to fail to start post-deployment (because they pull down the latest build from github).

Here is what I see in the 'heroku logs':
2013-02-14T13:23:48+00:00 app[web.1]: Meteor requires Node v0.8.18 or later.
2013-02-14T13:23:49+00:00 heroku[web.1]: Process exited with status 1
2013-02-14T13:23:49+00:00 heroku[web.1]: State changed from starting to crashed

Here is the original commit, which shows that Heroku chose v.0.8.11 as the NodeJS binary due to no version information being specified:

lap2$ git push heroku master
Counting objects: 5, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 306 bytes, done.
Total 3 (delta 1), reused 0 (delta 0)
-----> Fetching custom git buildpack... done
-----> Meteor app app detected
cat: /tmp/build_3a5nuqlhxboyj/package.json: No such file or directory
-----> Resolving engine versions

   WARNING: No version of Node.js specified in package.json, see:
   https://devcenter.heroku.com/articles/nodejs-versions

   Using Node.js version: 0.8.11

-----> Fetching Node.js binaries
...

I'm not sure if this is an issue with the build pack, or if I'm missing something in my meteor application source tree (like the above mentioned package.json) to coerce Heroku into using a different NodeJS version.

My first attempt at using the package.json is failing without a useful error at present, so I thought I'd raise an Issue in case someone else runs into this in the meantime.

Best Regards,

Jay Fenton

Meteor v 1.3.4.1 is not running on heroku

Hi,

I get the following error when I try to run my app. My meteor version is 1.3.4.1.

2016-08-19T19:05:51.601552+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=dss-society.herokuapp.com request_id=d69e885f-f280-466c-983d-290e6ad563ac fwd="122.162.155.80" dyno= connect= service= status=503 bytes=

2016-08-19T19:05:53.110399+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=dss-society.herokuapp.com request_id=21f873ad-ea6f-4f72-92c7-0f1c6d94ae3f fwd="122.162.155.80" dyno= connect= service= status=503 bytes=

Heroku push rejected due to an unrecognized error

Hey Jordan

I just tried out your buildback, but got an unrecognized error. I'm unsure if this is a Heroku problem or a problem with the buildpack, since I'm a newbie to both ;)

I've followed the instructions on setting up the wordplay meteor app which works in localhost. Creating the app on heroku also seems to work (heroku create --stack cedar --buildpack https://github.com/jordansissel/heroku-buildpack-meteor.git).

However, when pushing to Heroku—git push heroku master—I get the following trace:

heroku-deployment/wordplay - [master] » git push heroku master
Counting objects: 17, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (16/16), done.
Writing objects: 100% (17/17), 468.50 KiB | 391 KiB/s, done.
Total 17 (delta 0), reused 0 (delta 0)

-----> Heroku receiving push
-----> Fetching custom buildpack... done
-----> meteor app detected
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  5238    0  5238    0     0  23665      0 --:--:-- --:--:-- --:--:--  106k
Fetching meteor deb package
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 11.9M  100 11.9M    0     0  34.2M      0 --:--:-- --:--:-- --:--:-- 51.9M
Unpacking meteor
Building meteor bundle
-----> Discovering process types
       Procfile declares types  -> (none)
       Default types for meteor -> web
-----> Compiled slug size is 11.7MB
-----> Launching...
 !     Heroku push rejected due to an unrecognized error.
 !     We've been notified, see http://support.heroku.com if the problem persists.


To [email protected]:quiet-day-7112.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:quiet-day-7112.git'

Gettin auth failed error

I tried to deploy my app but having issues I configured the username and password using mongolabs, but when I try to run my app I'm running into an issue. it says

Exception in callback of async function: MongoError: auth failed

I'm running the same version of mongo locally, so i know it's not that, and i tripple checked the passwords ,and tried it via command line and it seems to work

Post compile hook

It would be very useful to me if this buildpack included a post compile hook, something like:

if [ -x post_compile ]; then
    echo "-----> Running post_compile hook"
    ./post_compile
fi

What do you think?

Exception from Meteor.flush: Error: Must pass options.rootUrl or set ROOT_URL in the server environment

I'm trying to deploy a Meteor 0.5.0 app and in Chrome's dev console appears that error when I click on the button to configure Facebook app:

Exception from Meteor.flush: Error: Must pass options.rootUrl or set ROOT_URL in the server environment
    at Object.Meteor.absoluteUrl (http://secure-harbor-2272.herokuapp.com/5ac50f841f5374479be5b35d4825dace744bedaf.js:11:171)
    at Template.configureLoginServiceDialogForFacebook.siteUrl (http://secure-harbor-2272.herokuapp.com/5ac50f841f5374479be5b35d4825dace744bedaf.js:125:82)
    at u (http://secure-harbor-2272.herokuapp.com/5ac50f841f5374479be5b35d4825dace744bedaf.js:77:2110)
    at o (http://secure-harbor-2272.herokuapp.com/5ac50f841f5374479be5b35d4825dace744bedaf.js:77:2350)
    at http://secure-harbor-2272.herokuapp.com/5ac50f841f5374479be5b35d4825dace744bedaf.js:77:2917
    at Object.Spark.labelBranch (http://secure-harbor-2272.herokuapp.com/5ac50f841f5374479be5b35d4825dace744bedaf.js:65:10273)
    at h (http://secure-harbor-2272.herokuapp.com/5ac50f841f5374479be5b35d4825dace744bedaf.js:77:2772)
    at http://secure-harbor-2272.herokuapp.com/5ac50f841f5374479be5b35d4825dace744bedaf.js:77:2890
    at Array.forEach (native)
    at Function.S.each.S.forEach (http://secure-harbor-2272.herokuapp.com/5ac50f841f5374479be5b35d4825dace744bedaf.js:1:1574) 

Any ideas to fix this ?

Build has errors with flemay:less-autoprefixer/semantic-ui

My app uses semantic-ui and running meteor on it works fine, but when building the app via the buildpack, I run into this:

remote: -----> Building Meteor App Bundle
remote:        Errors prevented bundling:
remote:        While processing files with flemay:less-autoprefixer (for target web.browser):
remote:        client/app.less:2: Unknown import:
remote:        lib/semantic-ui/definitions/globals/site.import.less

And despite this error, it continues with the deployment anyway, leading to a broken app being deployed.

App works locally but crashes on Heroku?

I followed the steps in this stackoverflow question, but for some reason the app crashes on heroku even though it works on my local machine. I checked the logs and found this information:

2016-09-20T19:28:18.096258+00:00 heroku[web.1]: State changed from crashed to starting
2016-09-20T19:28:39.792352+00:00 heroku[web.1]: Starting process with command `node build/bundle/main.js`
2016-09-20T19:28:44.018244+00:00 app[web.1]: 
2016-09-20T19:28:44.018578+00:00 app[web.1]: assert.js:93
2016-09-20T19:28:44.018940+00:00 app[web.1]:   throw new assert.AssertionError({
2016-09-20T19:28:44.018944+00:00 app[web.1]:         ^
2016-09-20T19:28:44.021453+00:00 app[web.1]: AssertionError: "undefined" === "function"
2016-09-20T19:28:44.021455+00:00 app[web.1]:     at wrapPathFunction (/app/build/bundle/programs/server/mini-files.js:77:10)
2016-09-20T19:28:44.021456+00:00 app[web.1]:     at Object.<anonymous> (/app/build/bundle/programs/server/mini-files.js:108:24)
2016-09-20T19:28:44.021456+00:00 app[web.1]:     at Module._compile (module.js:456:26)
2016-09-20T19:28:44.021457+00:00 app[web.1]:     at Object.Module._extensions..js (module.js:474:10)
2016-09-20T19:28:44.021458+00:00 app[web.1]:     at Module.load (module.js:356:32)
2016-09-20T19:28:44.021459+00:00 app[web.1]:     at Function.Module._load (module.js:312:12)
2016-09-20T19:28:44.021459+00:00 app[web.1]:     at Module.require (module.js:364:17)
2016-09-20T19:28:44.021460+00:00 app[web.1]:     at require (module.js:380:17)
2016-09-20T19:28:44.021461+00:00 app[web.1]:     at Object.<anonymous> (/app/build/bundle/programs/server/boot.js:9:13)
2016-09-20T19:28:44.021461+00:00 app[web.1]:     at Module._compile (module.js:456:26)
2016-09-20T19:28:44.174809+00:00 heroku[web.1]: State changed from starting to crashed
2016-09-20T19:28:44.137122+00:00 heroku[web.1]: Process exited with status 8

Any idea why this might be happening or how I can fix it?

[question] issues on meteor 1.3

Hi.

I updated my app to meteor 1.3 and it works fine on local machine.
But I encountered errors when I push my app to heroku using https://github.com/jordansissel/heroku-buildpack-meteor.git.

Could you give me any suppgestions to solve them?

remote: -----> Building Meteor App Bundle
remote:        npm-container: updating npm dependencies -- cheerio, iconv-lite, request, fb,
remote:        usage...
remote:        => Errors while initializing project:
remote:        
remote:        While building package npm-container:
remote:        error: couldn't install npm packages from npm-shrinkwrap: Command failed: npm
remote:        WARN package.json [email protected] No description
remote:        npm WARN package.json [email protected] No repository
remote:        field.
remote:        npm WARN package.json [email protected] No README data
remote:        npm WARN deprecated [email protected]: the module is now available as
remote:        'css-select'
remote:        npm WARN deprecated [email protected]: the module is now available as 'css-what'
remote:        npm ERR! Linux 3.13.0-79-generic
remote:        npm ERR! argv "node"
remote:        "/tmp/build_147047ad9d301da1eae399fb02d28aa1/.meteor_tool/packages/meteor-tool/.1.3.0_3.fc5itk++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm"
remote:        "install"
remote:        npm ERR! node v0.10.43
remote:        npm ERR! npm  v2.14.22
remote:        
remote:        npm ERR! version not found: [email protected]
remote:        npm ERR! 
remote:        npm ERR! If you need help, you may report this error at:
remote:        npm ERR!     <https://github.com/npm/npm/issues>
remote:        
remote:        npm ERR! Please include the following file with any support request:
remote:        npm ERR!
remote:        /tmp/build_147047ad9d301da1eae399fb02d28aa1/app_src/packages/npm-container/.npm/package-new-on9g59/npm-debug.log
remote:        npm WARN package.json [email protected] No description
remote:        npm WARN package.json [email protected] No repository
remote:        field.
remote:        npm WARN package.json [email protected] No README data
remote:        npm WARN deprecated [email protected]: the module is now available as
remote:        'css-select'
remote:        npm WARN deprecated [email protected]: the module is now available as 'css-what'
remote:        npm ERR! Linux 3.13.0-79-generic
remote:        npm ERR! argv "node"
remote:        "/tmp/build_147047ad9d301da1eae399fb02d28aa1/.meteor_tool/packages/meteor-tool/.1.3.0_3.fc5itk++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm"
remote:        "install"
remote:        npm ERR! node v0.10.43
remote:        npm ERR! npm  v2.14.22
remote:        
remote:        npm ERR! version not found: [email protected]
remote:        npm ERR! 
remote:        npm ERR! If you need help, you may report this error at:
remote:        npm ERR!     <https://github.com/npm/npm/issues>
remote:        
remote:        npm ERR! Please include the following file with any support request:
remote:        npm ERR!
remote:        /tmp/build_147047ad9d301da1eae399fb02d28aa1/app_src/packages/npm-container/.npm/package-new-on9g59/npm-debug.log

Heroku failing to find settings.json on launch

I've posted about this on stack overflow.

I've ensured config:set is METEOR_SETTINGS="$(cat settings.json)" and Heroku fails to find it at runtime.

Not sure if it's buildpack related, but basically Heroku is not finding my settings.json while following the steps laid out in the readme here.

not wanted mongolab plugin

Let me start with the dessert: thank you for this buildpack and the time you spent for this amazing work.

Now the vegetables: the create command adds mongolab plugin but in the documentation it appears to be a facultative choice. In my opinion, this is a bug.

Meteor requires node version 0.10.41

Hello,

last night I upgraded Meteor to version 1.3. After the push to heroku, I got an application error. I took a look into the logs an saw "Meteor requires node version 0.10.41".

Sincerly,
Emre

Installing TypeScript

I'm trying to get the TypeScript compiler running on Heroku. So far I'm lost because I don't know how to install typescript as a dependency.

At first I put typescript as a devDependency in a package.json. I tried to put that in the root as well as the server directory. This didn't work.

What is the proper way to add TypeScript (or any other npm module)?

Meteor 1.2 needs node 10.40 or greater

A lot of Meteor people use this build pack; the recent Meteor update prompts an error on Heroku that 10.40 or greater is needed. This specifies 10.36.

[Question] Does anyone experience memory leak?

Hi.

Thanks for your buildpack, now I am operating my small meteor app on heroku.

Analyzing by Kadira, I saw that memory usage doesn't decrease after sessions decreased.
It seems kind of memory leak.

Does anyone experience it?

undefined method `netrc_filename' for Netrc:Class

When running heroku create --buildpack https://github.com/jordansissel/heroku-buildpack-meteor.git I get the following error on OS X:

undefined method `netrc_filename' for Netrc:Class
/usr/local/heroku/lib/heroku/auth.rb:138:in `netrc_path'
/usr/local/heroku/lib/heroku/auth.rb:160:in `rescue in netrc'
/usr/local/heroku/lib/heroku/auth.rb:151:in `netrc'
/usr/local/heroku/lib/heroku/auth.rb:178:in `read_credentials'
/usr/local/heroku/lib/heroku/auth.rb:113:in `get_credentials'
/usr/local/heroku/lib/heroku/auth.rb:89:in `password'
/usr/local/heroku/lib/heroku/auth.rb:17:in `api'
/usr/local/heroku/lib/heroku/command/base.rb:72:in `api'
/usr/local/heroku/lib/heroku/command/apps.rb:131:in `create'
/usr/local/heroku/lib/heroku/command.rb:212:in `run'
/usr/local/heroku/lib/heroku/cli.rb:30:in `start'
/usr/local/bin/heroku:24:in `<main>'

 !    Heroku client internal error.
 !    Search for help at: https://help.heroku.com
 !    Or report a bug at: https://github.com/heroku/heroku/issues/new

    Error:       undefined method `netrc_filename' for Netrc:Class (NoMethodError)
    Command:     heroku create --buildpack https://github.com/jordansissel/heroku-buildpack-meteor.git
    Plugins:     heroku-deploy
                 heroku-exit-status

    Version:     heroku-toolbelt/3.42.24 (x86_64-darwin10.8.0) ruby/1.9.3


    More information in /Users/[username]/.heroku/error.log

Output from heroku version:

heroku-toolbelt/3.42.24 (x86_64-darwin10.8.0) ruby/1.9.3
heroku-cli/4.27.8-2294739 (amd64-darwin) go1.5.1
=== Installed Plugins
[email protected]
[email protected]
heroku-deploy
heroku-exit-status
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]

Push rejecting due to bad buildpack(?)

Aplication was pushed for first time without issues, everything worked fine, but when i made some updates to code, and commited>pushed, following appeared:

remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Fetching set buildpack https://github.com/maxko87/heroku-buildpack-meteor.git... done
remote:
remote: ! Push rejected, failed to detect set buildpack https://github.com/maxko87/heroku-buildpack-meteor.git
remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote:
remote: Verifying deploy...
remote:
remote: ! Push rejected to myappname.
remote:
To https://git.heroku.com/myappname.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/myappname.git'

Support for Meteor 0.8.2

Have anyone tested it with the Meteor 0.8.2? I've tried and it doesn't work for me. It seems to be outdated and a lot of Heroku configuration has change since the version it was created for.

Meteor 1.3-beta.11 is not available on cloudfront

I'm having an issue pushing the build to heroku with Meteor 1.3-beta.11.
Basically it tries to fetch a non-existing linux tar.gz.

remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Fetching set buildpack https://github.com/jordansissel/heroku-buildpack-meteor.git... done
remote: -----> meteor app detected
remote:
remote: -----> Moving app source into a subdirectory
remote:
remote:        Node engine:         0.10.40
remote:        Npm engine:          unspecified
remote:        Start mechanism:     none
remote:        node_modules source: none
remote:        node_modules cached: false
remote:
remote:        NPM_CONFIG_PRODUCTION=true
remote:        NODE_MODULES_CACHE=true
remote:
remote:        PRO TIP: Use 'npm init' and 'npm install --save' to define dependencies
remote:        See https://devcenter.heroku.com/articles/nodejs-support
remote:
remote:        PRO TIP: Include a Procfile, package.json start script, or server.js file to start your app
remote:        See https://devcenter.heroku.com/articles/nodejs-support#runtime-behavior
remote:
remote: -----> Installing binaries
remote:        Downloading and installing node 0.10.40...
remote:
remote: -----> Building dependencies
remote:        Skipping dependencies (no source for node_modules)
remote:
remote: -----> Checking startup method
remote:
remote: -----> Finalizing build
remote:        Creating runtime environment
remote:        Exporting binary paths
remote:        Cleaning up build artifacts
remote:        Build successful!
remote:        /tmp/build_907c0c7b27c870f63919c75488a43374
remote:        └── (empty)
remote:
remote:
remote: -----> Fetching Meteor 1.3-beta.11
remote:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
remote:                                  Dload  Upload   Total   Spent    Left  Speed
remote: 100   341    0   341    0     0   4395      0 --:--:-- --:--:-- --:--:--  4428
remote:
remote: -----> Unpacking Meteor 1.3-beta.11
remote:
remote: gzip: stdin: not in gzip format
remote: tar: Child returned status 1
remote: tar: Error is not recoverable: exiting now
remote:
remote:  !     Push rejected, failed to compile meteor app

So the issue is in compile_meteor file on line 34

TARBALL_URL="https://d3sqy0vbqsdhku.cloudfront.net/packages-bootstrap/${METEOR_VERSION}/meteor-bootstrap-os.linux.x86_64.tar.gz"

This package link https://d3sqy0vbqsdhku.cloudfront.net/packages-bootstrap/1.3-beta.11/meteor-bootstrap-os.linux.x86_64.tar.gz is not working :/
Any ideas? Thanks.

Node 0.12 breaks buildpack, and it doesn't seem to respect package.json

Heroku's upgrade to node 0.12.0 yesterday breaks this buildpack, and I can't seem to set it back to 0.10.35 by adding a package.json in my root source directory.

Here is my package.json:

{
    "engines": {
        "node": "0.10.35"
    }
}

The buildpack logs still say Node engine: undefined and then install 0.12.0.

New error when pushing to Heroku

I wonder if it has anything to do with the fact that version 0.6.0 of Meteor just came out.

Unpacking meteor
ar: /app/tmp/repo.git/.cache/meteor_-1_amd64.deb: File format not recognized
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Exiting with failure status due to previous errors
Building meteor bundle
/tmp/buildpack_quv2v4nfwlql/bin/compile: 40: meteor: not found
tar: /app/tmp/repo.git/.cache/bundle.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Exiting with failure status due to previous errors
rm: cannot remove `/app/tmp/repo.git/.cache/bundle.tar.gz': No such file or directory

Heorku push rejected, Meteor 0.5.1

This is what I'm getting when attempting to deploy to heroku

Unpacking meteor
Building meteor bundle
-----> Discovering process types
       Procfile declares types  -> (none)
       Default types for meteor -> web
-----> Compiled slug size: 13.8MB
-----> Launching... !     Heroku push rejected, failure releasing code

To [email protected]:frozen-shore-5634.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:frozen-shore-5634.git'

/tmp/buildpack20160113-163-1jx5pre/bin/compile_meteor: line 66: cd: ../build/bundle/programs/server: No such file or directory

Had been working until this morning. Not sure what happened.

Edwins-MacBook-Pro:dine_bella_vita edwizzle$ git push heroku master
Counting objects: 5, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 420 bytes | 0 bytes/s, done.
Total 5 (delta 4), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Fetching set buildpack https://github.com/jordansissel/heroku-buildpack-meteor.git... done
remote: -----> meteor app detected
remote:
remote: -----> Moving app source into a subdirectory
remote:
remote: Node engine: 0.10.40
remote: Npm engine: unspecified
remote: Start mechanism: none
remote: node_modules source: none
remote: node_modules cached: true
remote:
remote: NPM_CONFIG_PRODUCTION=true
remote: NODE_MODULES_CACHE=true
remote:
remote: PRO TIP: Use 'npm init' and 'npm install --save' to define dependencies
remote: See https://devcenter.heroku.com/articles/nodejs-support
remote:
remote: PRO TIP: Include a Procfile, package.json start script, or server.js file to start your app
remote: See https://devcenter.heroku.com/articles/nodejs-support#runtime-behavior
remote:
remote: -----> Installing binaries
remote: Downloading and installing node 0.10.40...
remote:
remote: -----> Building dependencies
remote: Skipping dependencies (no source for node_modules)
remote:
remote: -----> Checking startup method
remote:
remote: -----> Finalizing build
remote: Creating runtime environment
remote: Exporting binary paths
remote: Cleaning up build artifacts
remote: Build successful!
remote: /tmp/build_dbec11ec77a27c281c541350eda8aa51
remote: └── (empty)
remote:
remote:
remote: -----> Fetching Meteor 1.2.1
remote: Using cached Meteor 1.2.1
remote:
remote: -----> Unpacking Meteor 1.2.1
remote: Meteor 1.2.1 is installed
remote:
remote: -----> Building Meteor App Bundle
remote: Unable to update package catalog (are you offline?)
remote:
remote: If you are using Meteor behind a proxy, set HTTP_PROXY and HTTPS_PROXY
remote: environment variables or see this page for more details:
remote: https://github.com/meteor/meteor/wiki/Using-Meteor-behind-a-prox
remote:
remote: This project says that it uses Meteor 1.2.1, but you don't have that version of
remote: Meteor installed, and we were unable to contact Meteor's update servers to find
remote: out about it. Please edit the .meteor/release file in the project and change it
remote: to a valid Meteor release, or go online.
remote:
remote: -----> Installing App's NPM Dependencies
remote: /tmp/buildpack20160113-163-1jx5pre/bin/compile_meteor: line 66: cd: ../build/bundle/programs/server: No such file or directory
remote:
remote: ! Push rejected, failed to compile meteor app
remote:
remote: Verifying deploy...
remote:
remote: ! Push rejected to dinebellavita.
remote:
To https://git.heroku.com/dinebellavita.git

Error when build an app with Meteor 0.6.5

Heroku logs:

2013-08-15T12:06:29+00:00 heroku[slug-compiler]: Slug compilation started
2013-08-15T12:06:43.647196+00:00 heroku[api]: Deploy 213bfc9 by [email protected]
2013-08-15T12:06:43.671450+00:00 heroku[api]: Release v350 created by [email protected]
2013-08-15T12:06:43.777150+00:00 heroku[web.1]: State changed from down to starting
2013-08-15T12:06:44+00:00 heroku[slug-compiler]: Slug compilation finished
2013-08-15T12:06:46.259053+00:00 heroku[web.1]: Starting process with command `PATH=.meteor/local/usr/bin:.meteor/local/usr/lib/meteor/bin:bin:/usr/local/bin:/usr/bin:/bin NODE_PATH=.meteor/local/usr/lib/meteor/lib/node_modules MONGO_URL=mongodb://heroku:[email protected]:10026/app14902610 .meteor/local/usr/lib/meteor/bin/node .meteor/local/build/main.js`
2013-08-15T12:06:46.926998+00:00 app[web.1]: module.js:340
2013-08-15T12:06:46.930406+00:00 app[web.1]:     at Function.Module._resolveFilename (module.js:338:15)
2013-08-15T12:06:46.926865+00:00 app[web.1]: 
2013-08-15T12:06:46.927270+00:00 app[web.1]:     throw err;
2013-08-15T12:06:46.927270+00:00 app[web.1]:           ^
2013-08-15T12:06:46.930406+00:00 app[web.1]: Error: Cannot find module '/app/.meteor/local/build/main.js'
2013-08-15T12:06:46.930406+00:00 app[web.1]:     at Function.Module._load (module.js:280:25)
2013-08-15T12:06:46.930406+00:00 app[web.1]:     at process.startup.processNextTick.process._tickCallback (node.js:244:9)
2013-08-15T12:06:46.930406+00:00 app[web.1]:     at Module.runMain (module.js:492:10)
2013-08-15T12:06:48.127332+00:00 heroku[web.1]: Process exited with status 1

Can you help?

Readme doesn't work

Following the instructions in README doesn't work. Output below:

mpj:code mattiasjim$ meteor create --example wordplay
wordplay: created.

To run your new app:
cd wordplay
meteor
mpj:code mattiasjim$ cd meteor
-bash: cd: meteor: No such file or directory
mpj:code mattiasjim$ cd wordplay/
mpj:wordplay mattiasjim$ git init
Initialized empty Git repository in /Users/mattiasjim/code/wordplay/.git/
mpj:wordplay mattiasjim$ git add .
mpj:wordplay mattiasjim$ git commit -m 'Sample wordplay app!'
[master (root-commit) 32dcfeb] Sample wordplay app!
11 files changed, 174436 insertions(+), 0 deletions(-)
create mode 100644 .meteor/.gitignore
create mode 100644 .meteor/packages
create mode 100644 TODO
create mode 100644 client/wordplay.css
create mode 100644 client/wordplay.html
create mode 100644 client/wordplay.js
create mode 100644 model.js
create mode 100644 public/circle-ball-dark-antialiased.gif
create mode 100644 server/enable2k.js
create mode 100644 server/game.js
create mode 100644 server/make-boggle-dict.js.noload
mpj:wordplay mattiasjim$ heroku create meteortesta --stack cedar --buildpack https://github.com/jordansissel/heroku-buildpack-meteor.git
Creating meteortesta...git push e done, stack is cedar
http://meteortesta.herokuapp.com/ | [email protected]:meteortesta.git
Git remote heroku added
mpj:wordplay mattiasjim$ git push heroku
heroku open
No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.
^CKilled by signal 2.

mpj:wordplay mattiasjim$ git push heroku master
Counting objects: 17, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (16/16), done.
Writing objects: 100% (17/17), 468.50 KiB | 132 KiB/s, done.
Total 17 (delta 0), reused 0 (delta 0)

-----> Heroku receiving push
! Heroku push rejected, no Cedar-supported app detected

To [email protected]:meteortesta.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:meteortesta.git'
mpj:wordplay mattiasjim$

where should I specific my npm version

$(package_json ".engines.npm") seems like the code is reading the package.json on the root file.
But the code just don't read the root file package.json

please help!

Custom port

Hello @jordansissel -- how do I specify a custom port (not the default Heroku port)? I need to do this in order to mix it with the nginx build pack... thanks!

heroku scheduler with node.js file

So I want to run a periodic job with Heroku Scheduler but the job fails every time with following message.

ReferenceError: require is not defined`

This is the code I am running in scheduler file schedulerTest:

var http = require('http');

var options = {
    host: 'sometesturl.herokuapp.com',
    port: 80,
    path: '/api/schedulertest',
    method: 'GET'
};

http.request(options, function(res) {
        res.on('data', function (chunk) {
            console.log('BODY: ' + chunk);
        });
}).end();

Heroku upload without addon- credit card confirmation

Im wanting to deploy to heroku a meteor application, but i cannot while i dont verify with credit card. Also a lot of users of course search for this, and the documentation is not clear, can i do it?! how?! Can the readme be specified step-by-step how to do it?!

Question about Procfiles

I'd like to be able to run some other nodejs processes on my Heroku instance, and would like to do something like:

web: node build/bundle/main.js
worker: node .job-workers/server.js

Is this possible using this buildpack?

Exception while bundling application

hi,

i am trying to deploy a Meteor 0.6.4 app, , and i get this error because of the meteorite package

Exception while bundling application

-----> Removing .DS_Store files
-----> Fetching custom git buildpack... done
-----> meteor app detected
Fetching meteor deb package
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 13.6M  100 13.6M    0     0  57.9M      0 --:--:-- --:--:-- --:--:-- 63.6M
Unpacking meteor
Building meteor bundle
Errors prevented bundling:
Exception while bundling application:
Error: The package named accounts-ui-bootstrap-dropdown does not exist.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.