Comments (20)
http://screencloud.net/v/4D61
got this to when i try too use sh met search moment
from meteor-webpack-react.
Hmmm I see you're on Windows.... I didn't have enough time to try this on Win7 yet. Do most Windows devs use cygwin? Is that how the bash scripts run? (windows noob 😆)
There's something wrong with the script changing directories. The meteor warning you're getting is what you get when running meteor
from outside a Meteor project.
Did you happen to rename the meteor_core
folder? If you ./met search moment
it should cd meteor_core
and then run the command.
It's also hanging up when the dev script cd
back into meteor_core/
.
from meteor-webpack-react.
@jedwards1211 I'm getting an error running the latest commit but mine barks about webpack-dev-server not being found. The server never comes up and the loading... is only displayed on the html.
meteor-webpack-react|master⚡ ⇒ ./dev
./dev: line 8: webpack-dev-server: command not found
Hash: aeb572fb1bde5f3e253c
Version: webpack 1.10.5
Time: 1607ms
Asset Size Chunks Chunk Names
server.bundle.js 148 kB 0 [emitted] main
[0] multi main 40 bytes {0} [built]
+ 172 hidden modules
[[[[[ ~/projects/sandbox/meteor-webpack-react/meteor_core ]]]]]
=> Started proxy.
=> Started MongoDB.
I20150816-13:46:13.397(-4)? Creating fake posts
I20150816-13:46:13.398(-4)? Creating fake users
I20150816-13:46:13.485(-4)?
I20150816-13:46:13.485(-4)?
I20150816-13:46:13.485(-4)? Running on server only
I20150816-13:46:13.487(-4)? There are # posts: 4
=> Started your app.
=> App running at: http://localhost:3000/
from meteor-webpack-react.
@AdamBrodzinski i got this error first then i installed "npm install webpack-dev-server -g" and all was fine but i have the other problem with meteor^^
from meteor-webpack-react.
could you put pwd &&
in the script before the line that starts Meteor? Maybe we'll at least know it failed to switch back to that directory. What sh
are you using on windows, is it via cygwin or what? I wouldn't be too surprised if that while loop in the script somehow threw things off on Windows.
from meteor-webpack-react.
#!/bin/bash
cd meteor_core && pwd && meteor $@
Same error meteor not found i have no idea i never installed cygwin or something or i forgot or something i will check this how sh is working btw what sh is calling to execute
i have no idea what i install to run sh
/e but when i add && ls && i see its in the folder http://screencloud.net/v/37wA
from meteor-webpack-react.
@cannap I'm pretty confused, if you didn't have sh
installed I wouldn't think you'd be able to run the file at all. Can you try installing Cygwin and running the scripts via the Cygwin terminal? I don't know much windows shell/powershell, but if you or anyone else does, you're welcome to port the scripts to windows.
from meteor-webpack-react.
marko@marko /cygdrive/c/Dokumente und Einstellungen/marko/Desktop/meteor-webpack-react-master
$ sh dev
„assets/server.bundle.js“ wurde entfernt
Verzeichnis wurde entfernt: „assets“ 70% 1/1 build moduleshttp://localhost:9090/webpack-dev-server/
webpack result is served from http://0.0.0.0:9090/assets/
content is served from http://0.0.0.0:3000
404s will fallback to /index.html Hash: 214621555685f69f75c1
Version: webpack 1.11.0
Time: 1223ms
Asset Size Chunks Chunk Names
server.bundle.js 148 kB 0 [emitted] main
[0] multi main 40 bytes {0} [built]
+ 172 hidden modules
Assertion failed: 0, file d:\jenkins\workspace\nodejs-msi-julien\d8c2e2bb\deps\uv\src\win\req-inl.h, line 207
dev: Zeile 20: meteor: Kommando nicht gefunden.
this is over cygwin dev is not working i need to put sh dev
and d:\jenkins\ i dont have something folder on my D:
i will try something tomorrow i have no idea
ah and i think the sh comes from the installed git :D
from meteor-webpack-react.
@jedwards1211 would you be open to using ShellJS to do cross platform unix scripts? I have some free time later next week and can convert them, test it out, and the if all is well merge them into master.
@cannap until we can resolve this, what if you open separate terminals and run each of these commands manually?
../node_modules/webpack-dev-server/bin/webpack-dev-server.js --config webpack.config.client.dev.js --progress --colors
../node_modules/webpack/bin/webpack.js --config webpack.config.server.js --progress --colors --watch &
cd meteor_core
meteor --settings ../settings/devel.json
I was able to resolve my issues. Using a relative path to the bin files works for me. I'm assuming using npm run
will look into the node_modules
first then the path. I had webpack global but not webpack-dev-server.
I just submitted PR #22 to allow all the scripts to run without globals. However this wouldn't fix @cannap 's issue.
from meteor-webpack-react.
@AdamBrodzinski i found it! ;D http://screencloud.net/v/Awm6 i will explain this tomorrow here is late i n the night^^
//but im not sure i make this right i will explain later
from meteor-webpack-react.
Switch to webpack and edit devProps.js var host = '0.0.0.0'
to var host = 'localhost'
Then copy the files: https://github.com/jedwards1211/meteor-webpack-react#windows-note
Go to the Root folder from this Repo create a file "dev.cmd"
put this in
rm -rvf assets
cd webpack
@start /b webpack-dev-server --config webpack.config.client.dev.js --progress --colors
@start /b webpack --config webpack.config.server.js --progress --colors --watch
cd ../meteor_core
@start /b meteor --settings ../settings/devel.json
start http://localhost:3000
open cmd writte dev press enter and all things will start
from meteor-webpack-react.
@cannap Aha, cool, glad you got that working. Just a few warnings about these changes:
- I believe
localhost
instead of0.0.0.0
means you won't be able to test on a smartphone by entering the IP address of your dev box +:3000
. - Sometimes
meteor
can finish starting up before the serverwebpack
finishes building. Meteor should automatically load the new bundle in that case, but sometimes it caused problems for me. That's why I had the while loop in my script to wait until the server bundle is output.
I guess we could get rid of the symlinks and change the webpack config to output directly to where those symlinks are located. I can investigate soon
from meteor-webpack-react.
whoops
from meteor-webpack-react.
but 0.0.0.0 wont work on windows
https://www.npmjs.com/package/weinre <-- tunnel then its available in the network
from meteor-webpack-react.
Huh, I thought Webpack was in charge of which IP addresses it listens on, but I don't know a whole lot about networking. That's a cool package, I'll have to check that out.
from meteor-webpack-react.
I'm thinking one way to be totally cross-platform would be to just rewrite our shell scripts in JS. Does anyone know good tools for that? I'm assuming this wouldn't really be the kind of thing Grunt is for.
from meteor-webpack-react.
@jedwards1211 I think https://github.com/arturadib/shelljs would be a good fit 👍
from meteor-webpack-react.
@AdamBrodzinski cool! that looks nice. Though now that I think about it, I wonder if the simultaneous execution with &
would work somehow, and if all those processes would be terminated when Ctrl-Cing the script.
from meteor-webpack-react.
Yea I looked into it and they have an async and sync way (&
is for async right?) to run processes.... not sure about cleanup with Cltrl-C though.
from meteor-webpack-react.
I just converted the scripts to shelljs!
from meteor-webpack-react.
Related Issues (20)
- Stripe integration HOT 1
- Calling configure method of useraccounts package causes error HOT 2
- WebPack Syntax Error on Windows
- Why would dev.js build server only?? HOT 2
- CoffeeScript/ Usage with meteord HOT 2
- How to: Server side debugging? HOT 2
- npm WARN deprecated [email protected]: lodash@<2.0.0 is no longer maintained. Upgrade to lodash@^3.0.0 npm WARN deprecated [email protected]: lodash@<2.0.0 is no longer maintained. Upgrade to lodash@^3.0.0 HOT 3
- TypeError: Cannot read property 'loginButtons' of undefined HOT 4
- Screen stays at "Loading" HOT 2
- mailgun-js HOT 2
- Meteor 1.3 HOT 18
- Adding loaders to webpack.config.client.js HOT 2
- Code splitting doesn't work in production (because only main chunk gets copied to meteor folder) HOT 12
- Cannot import meteor modules HOT 1
- Problem using Elasticsearch HOT 4
- Weird debug issues -- out of the box HOT 1
- [ERROR] Cannot find Cannot find module 'temp' , core-js-no-number when running dev HOT 2
- GET http://localhost:9090/ 502 Bad Gateway HOT 6
- Trying to bundle a pure node.js application HOT 2
- Webpack issue loading static files HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meteor-webpack-react.