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

Deploy instructions #1644

Closed
bsde1234 opened this issue Aug 22, 2018 · 19 comments
Closed

Deploy instructions #1644

bsde1234 opened this issue Aug 22, 2018 · 19 comments

Comments

@bsde1234
Copy link

Please give local deploy instructions

@tech4him1
Copy link
Contributor

@bpmottathai We have documentation of how to add Netlify CMS to your site: https://www.netlifycms.org/docs/add-to-your-site/. Can you explain more specifically what you are having problems with?

@bsde1234
Copy link
Author

bsde1234 commented Aug 22, 2018

I am noob. what I did was

npm install netlify-cms

Then

cd netlify-cms

then

npm run build

it gives

netlify-cms@2.0.9 build /home/name/node_modules/netlify-cms
> cross-env NODE_ENV=production webpack

events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: spawn webpack ENOENT
    at _errnoException (util.js:1022:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
    at onErrorNT (internal/child_process.js:372:16)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
    at Function.Module.runMain (module.js:695:11)
    at startup (bootstrap_node.js:188:16)
    at bootstrap_node.js:609:3

npm ERR! Linux 4.15.0-20-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "build"
npm ERR! node v8.10.0
npm ERR! npm  v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! netlify-cms@2.0.9 build: `cross-env NODE_ENV=production webpack`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the netlify-cms@2.0.9 build script 'cross-env NODE_ENV=production webpack'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the netlify-cms package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     cross-env NODE_ENV=production webpack
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs netlify-cms
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls netlify-cms
npm ERR! There is likely additional logging output above.

@papandreou
Copy link
Contributor

The copy of netlify-cms you get when npm installing the module is not suitable for development, because all of the development prerequisites (webpack, test runner etc.) are in the devDependencies section of package.json, and thus don't get installed in that case.

Try cloning the repository instead, and run npm install in it:

git clone git@github.com:netlify/netlify-cms
cd netlify-cms
npm install
npm install -g yarn # if you don't have it installed already
npm start

@papandreou
Copy link
Contributor

Oh, it's being worked on here: #1645 -- probably not a coincidence :)

@bsde1234
Copy link
Author

@bsde1234
Copy link
Author

bsde1234 commented Aug 23, 2018

What are the pre requirements for netlify. I have nodejs and npm. Any other like react or something I have warning of unmet peer dependency react immutable and slate.
https://s15.postimg.cc/6idhuhbcb/Screenshot_from_2018-08-22_20-27-57.png

@tech4him1
Copy link
Contributor

@bpmottathai Are you trying to develop Netlify CMS or just use it on your website?

@bsde1234
Copy link
Author

bsde1234 commented Aug 23, 2018

Sorry as I am noob I can't get you. What I need is a site like app.netlify.com for my own under my domain and a netlify template for my own. Is it possible?

@tech4him1
Copy link
Contributor

@bpmottathai There are a few things we need to clear up here:

  • netlify.com is a website hosting platform. It doesn't have anything to do with the CMS.
  • Netlify CMS is an "editor" for your website content. It can be used with or without Netlify.com.
  • If you are just trying to create your own website, you don't need to cd netlify-cms or run it's build -- it has already been built for you.
  • The easiest way to get started on creating a website with Netlify CMS if you don't already have one is to use our starter templates and follow those instructions. Here is a link: https://www.netlifycms.org/docs/start-with-a-template/.

@bsde1234
Copy link
Author

bsde1234 commented Aug 23, 2018

I don't need to start a template like hugo with netlify cms. I need netlify cms under my domain. I need my customers host their site in git platform.

@tech4him1
Copy link
Contributor

Do you already have a website? If so, what site generator does it use?

@bsde1234
Copy link
Author

bsde1234 commented Aug 23, 2018

The website is for my customers not for me. I need a website like cloud cannon

@tech4him1
Copy link
Contributor

The interface that Netlify CMS provides looks like this: https://cms-demo.netlify.com/

Is that what you are wanting?

@bsde1234
Copy link
Author

bsde1234 commented Aug 23, 2018

Yes but for my customers. I know it will get by using /admin to hugo or any site in netlify

@tech4him1
Copy link
Contributor

tech4him1 commented Aug 23, 2018

Netlify CMS isn't normally used to edit templates for your site, just the content. If you are creating a website for your customer you will need to create the site first to work with a site generator like Hugo or Jekyll. After you have the site created you can add the CMS interface.

The instructions for adding and deploying it are here: https://www.netlifycms.org/docs/add-to-your-site/.

@tech4him1
Copy link
Contributor

If I am misunderstanding what you are wanting here, I apologize. You may try asking on the Chat: https://gitter.im/netlify/community

@bsde1234
Copy link
Author

bsde1234 commented Aug 23, 2018

If I create a site like https://deploy-preview-1645--netlify-cms-www.netlify.com/ when click deploy to domain will it go to app.netlify.com or app.mydomain.com

And I don't need customers hosting in my host instead thay should use github or gtlab

@tech4him1 tech4him1 reopened this Aug 24, 2018
@stale
Copy link

stale bot commented Oct 29, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@erezrokah
Copy link
Contributor

Closing at stale

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

No branches or pull requests

4 participants