picocms / Pico

Pico is a stupidly simple, blazing fast, flat file CMS.
http://picocms.org/
MIT License
3.82k stars 616 forks source link

Update PicoCMS #468

Closed ctuxboy closed 5 years ago

ctuxboy commented 5 years ago

Okay, Next step!

I have SSH access to my hosting.

Follow the steps installing Picocms with composer.

Now i have access to PicoCMS with this url: https://my_domain.be/pico-composer/

  1. How can i set Picocms in the root folder? Just copy the files in the webroot?
  2. What is the reason accessing pico in a subdir /pic-composer/?
PhrozenByte commented 5 years ago
  1. Yes, you can safely move/copy all of Pico's file to a different directory (including webroot of course)

  2. This is due to how composer create-project picocms/pico-composer works. Unfortunately we can't really change that. However, I guess the install instructions can be made more precise here. I'll update them accordingly, thank you for your feedback! :+1:

Lomanic commented 5 years ago

I did not test it but composer create-project picocms/pico-composer . should create the files in the current directory instead of ./pico-composer.

PhrozenByte commented 5 years ago

That's correct @Lomanic. However, since we unfortunately can't assume that Composer is installed globally, we recommend users to download composer.phar first. Unfortunately the guys from Composer didn't decide to treat a directory with just the composer.phar in it as "empty enough", but decided to rather let Composer bail out...

@ctuxboy isn't the first user stumbling over this, thus I think it's better to update the docs accordingly. On occasion I also updated the install instructions for developers :smile: See 8826bf4bfed59cffac5a5f53fdc3f38db668e815 resp. https://github.com/picocms/picocms.github.io/commit/39bb74290b2aa0c07baaedbe55c418654031c6ee

ctuxboy commented 5 years ago

Hi @PhrozenByte & @Lomanic ,

I appreciate you all for this awesome support :-) I'm a newbie with PicoCMS but love it ;) Trying follow the docs, but for a beginner, sometimes, not so easy to understand. Step by step it succeeds to understand.

Okay, now i do so:

  1. install PicoCMS with composer in the generated dir my_domain.be/pico-composer/ (=dev environment)
  2. copy the files from my_domain.be/pico-composer/ to the webroot my_domain.be/ (=production environment)
  3. if there is an update copy agian from the subdir to the webroot

Hope this is a good workflow for developing with PicoCMS.

ctuxboy commented 5 years ago

UPDATE: I read the changes in the Readme.md now it's clearify.

Installed PicoCMS directly in the webroot using composer with success!!!!

stale[bot] commented 5 years ago

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