rekit / rekit-studio

Rekit Studio.
MIT License
62 stars 9 forks source link

Cannot GET / #9

Open Moutard3 opened 4 years ago

Moutard3 commented 4 years ago

When I start rekit-studio, it starts successfully but then when I go on the web app I got

Cannot GET /

Here's what I do to start it:

PS C:\Workspace\web\project> rekit-studio
[2020-05-26 07:09:23.878] [studio] [info] Starting Rekit Studio:  {"port":3000,"projectRoot":"C:\\Workspace\\web\\project","pluginDir":null,"pluginsDir":null}
[2020-05-26 07:09:23.923] [info] All plugins: ["default","terminal","scripts","test","git-manager","pty","typescript","rekit-studio-info","common-core","rekit-plugin","rekit-react"]
[2020-05-26 07:09:23.924] [info] Applied plugins for appType rekit-react:  ["default","terminal","scripts","test","git-manager","pty","typescript","rekit-studio-info","rekit-react"]
[2020-05-26 07:09:23.926] [studio] [info] Remote ui plugins: []
[2020-05-26 07:09:24.335] [studio] [info] Rekit Studio is running at http://localhost:3000/
Moutard3 commented 4 years ago

Update: It's working when I use the startDevServer script instead of start

MatthewScholefield commented 4 years ago

I think this is a problem with installing directly from GitHub. Could you confirm that this was caused from something like npm install http://github.com/user/repo? The reason is that it looks like the official packages in npm are deployed a specific way that includes the generated static assets alongside the package. Without redeploying using the scripts in the repo (ie. just installing directly through git), it can't GET any of the static assets.

Also, by the way, if you wanted to install the latest version without erroring from the node-pty install, you can download the existing npm tgz file, modify the inner package.json, and then install that. This retains the generated resources. I've already done this with the latest version that can be installed with:

npm install -g https://gist.github.com/MatthewScholefield/b5eb628633be28daff994c2fbb917b74/raw/68d4ff48702f44b2991b96e6a46b9d335f5093af/rekit-studio-3.0.4.tgz