Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support https git cloning #180

Open
fenchu opened this issue May 30, 2017 · 2 comments
Open

support https git cloning #180

fenchu opened this issue May 30, 2017 · 2 comments

Comments

@fenchu
Copy link

fenchu commented May 30, 2017

Hi

Due to company policies ssh port 22 is blocked, but I can use https instead:

bash-4.3# roc new react-app web-app-react
:
Installing template dependencies… (If this fails you can try to run npm install directly)
npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror git@github.com:dlmr/react-router-redux.git /root/.npm/_git-remotes/git-github-com-dlmr-react-router-redux-git-fix-inital-server-load-dist-3ecdc0c9: Cloning into bare repository '/root/.npm/_git-remotes/git-github-com-dlmr-react-router-redux-git-fix-inital-server-load-dist-3ecdc0c9'...
:
npm ERR! ssh: connect to host github.com port 22: Connection refused
npm ERR! fatal: Could not read from remote repository.
bash-4.3# export GIT_SSL_NO_VERIFY=1
bash-4.3# git clone https://github.com/dlmr/react-router-redux.git
Cloning into 'react-router-redux'...
remote: Counting objects: 1394, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 1394 (delta 1), reused 0 (delta 0), pack-reused 1391
Receiving objects: 100% (1394/1394), 262.38 KiB | 182.00 KiB/s, done.
Resolving deltas: 100% (718/718), done.

How can this easily be configured?
Do you have more info about autoconfiguring the roc.config.js.
I try to automate this inside an alpine docker container.

Thanks
Regards MortenB

@fenchu
Copy link
Author

fenchu commented May 30, 2017

works if I enter something in in the template variables and go: cd react-app; npm install; npm run dev.

@dlmr
Copy link
Member

dlmr commented May 30, 2017

Hello! 👋

It looks like you are using version 1.0.0-rc.10 of Roc, I would suggest starting with going to the next version that currently is at 1.0.0-rc.20 if possible, it will most likely be backwards compatible with what you use today.

You can the next version using npm install -g roc@next.

Doing this you will get a version of the template that does not have dependency on a git package. If you would like to stay on your current version of Roc you can manually update the package.json that have been created for your project and bump the dependency on roc-package-web-app-react-dev and roc-package-web-app-react from 1.0.0-alpha.11 to 1.0.0-alpha.13.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants