AdmitHub / meteor-buildpack-horse

Heroku buildpack for Meteor v1.0+. The horse one.
MIT License
641 stars 587 forks source link

Cannot find ionic scss #33

Closed weijian19391 closed 9 years ago

weijian19391 commented 9 years ago

Hi!

I've tried the setting stack to -14 solution (but i believe that the latest version of heroku doesn't require that setting already since they have deprecated the previous stack version https://devcenter.heroku.com/articles/cedar), and i'm still getting the error of

remote: Errors prevented bundling:
remote: While building the application:
remote: /tmp/build_c76b59a4fbbd167b917775f6cee37410/client/stylesheets/app.scss:4:9:
remote: Scss compiler error: file to import not found or unreadable:
remote: .meteor/local/build/programs/server/assets/packages/meteoric_ionic-sass/ionic
remote: Current dir: /tmp/build_c76b59a4fbbd167b917775f6cee37410/client/stylesheets/
remote: 
remote: 
remote: 
remote:  !     Push rejected, failed to compile Node.js app

any help will be greatly appreciated!

yourcelf commented 9 years ago

Cedar-10 vs cedar-14 shouldn't be (and hasn't yet been) an issue, as far as I know.

Your issue looks like it's related to #19 -- meteor needs to launch once to build your static scss files before it can build the bundle. Try setting BUILDPACK_PRELAUNCH_METEOR = 1 in your heroku environment and rerunning.

weijian19391 commented 9 years ago

Hi @yourcelf !

Thanks for your prompt reply! i've followed your suggestion, and have managed to deploy to heroku, however, now the deployment doesn't show any CSS at all! Here's the link to my deployment: http://mighty-forest-6021.herokuapp.com/

Any idea what may have caused this??

Edit: Okay i have no idea what happened, but when i redeployed, it showed me the following:

remote: -----> Pre-launching Meteor to create packages assets and prevent bundling from failing
remote: [[[[[ /tmp/build_d15b9953a1e2b892d3936ffbb50fc63d ]]]]]
remote: 
remote: => Started proxy.
remote: => Errors prevented startup:
remote:    
remote:    While building the application:
remote:    /tmp/build_d15b9953a1e2b892d3936ffbb50fc63d/client/stylesheets/app.scss:4:9:
remote:    Scss compiler error: file to import not found or unreadable:
remote:    .meteor/local/build/programs/server/assets/packages/meteoric_ionic-sass/ionic
remote:    Current dir:
remote:    /tmp/build_d15b9953a1e2b892d3936ffbb50fc63d/client/stylesheets/
remote:    
remote:    
remote: => Your application has errors. Waiting for file change.
remote: Killed
remote: npm WARN package.json meteor-dev-bundle@0.0.0 No description
remote: npm WARN package.json meteor-dev-bundle@0.0.0 No repository field.
remote: npm WARN package.json meteor-dev-bundle@0.0.0 No README data
remote: 
remote: > fibers@1.0.5 install /tmp/build_d15b9953a1e2b892d3936ffbb50fc63d/.meteor/heroku_build/app/programs/server/node_modules/fibers
remote: > node ./build.js
remote: 
remote: `linux-x64-v8-3.14` exists; testing
remote: Binary is fine; exiting
remote: underscore@1.5.2 node_modules/underscore
remote: 
remote: semver@4.1.0 node_modules/semver
remote: 
remote: eachline@2.3.3 node_modules/eachline
remote: └── type-of@2.0.1
remote: 
remote: chalk@0.5.1 node_modules/chalk
remote: ├── ansi-styles@1.1.0
remote: ├── escape-string-regexp@1.0.3
remote: ├── supports-color@0.2.0
remote: ├── has-ansi@0.1.0 (ansi-regex@0.2.1)
remote: └── strip-ansi@0.3.0 (ansi-regex@0.2.1)
remote: 
remote: source-map-support@0.2.8 node_modules/source-map-support
remote: └── source-map@0.1.32 (amdefine@0.1.0)
remote: 
remote: fibers@1.0.5 node_modules/fibers
remote: -----> Adding PATH environment
remote: -----> Running extras
remote: -----> Adding MONGOHQ_URL -> MONGO_URL env
remote: -----> Adding MONGOLAB_URI -> MONGO_URL env
remote: -----> Installing phantomjs.
remote: -----> Discovering process types
remote:        Procfile declares types   -> (none)
remote:        Default types for Node.js -> web
remote: 
remote: -----> Compressing... done, 29.5MB
remote: -----> Launching... done, v13
remote:        https://mighty-forest-6021.herokuapp.com/ deployed to Heroku
remote: 
remote: Verifying deploy... done.
To https://git.heroku.com/mighty-forest-6021.git
   07eb826..38cd329  master -> master

and the website launches successfully. Thanks for your help anyways!