README.md: Add Pico 2.0 install/upgrade instructions
This commit is contained in:
parent
e079946e6f
commit
b6bd714e52
1 changed files with 61 additions and 46 deletions
107
README.md
107
README.md
|
@ -18,85 +18,97 @@ Screenshot
|
||||||
Install
|
Install
|
||||||
-------
|
-------
|
||||||
|
|
||||||
You can install Pico either using a pre-bundled release or with composer. Pico is also available on [Packagist.org][] and may be included in other projects via `composer require picocms/pico`. Pico requires PHP 5.3.6+
|
Installing Pico is dead simple - and done in seconds! If you have access to a shell on your server (i.e. SSH access), we recommend using [composer][]. If not, use a pre-bundled release. If you don't know what "SSH access" is, head over to the pre-bundled release. 😇
|
||||||
|
|
||||||
#### Using a pre-bundled release
|
Pico requires PHP 5.3.6+
|
||||||
|
|
||||||
Just [download the latest Pico release][LatestRelease] and upload all files to the `httpdocs` directory (e.g. `/var/www/html`) of your server.
|
### I want to use composer
|
||||||
|
|
||||||
#### Composer
|
Starting with Pico 2.0 we recommend installing Pico using composer whenever possible. Trust us, you won't regret it when it comes to upgrading Pico! Anyway, if you don't want to use composer, or if you simply can't use composer because you don't have access to a shell on your server, don't despair, installing Pico using a pre-bundled release is still easier than everything you know!
|
||||||
|
|
||||||
###### Step 1 - for users
|
###### Step 1
|
||||||
|
|
||||||
[Download the *source code* of Pico's latest release][LatestRelease], upload all files to the `httpdocs` directory (e.g. `/var/www/html`) of your server and navigate to the upload directory using a shell.
|
Open a shell and navigate to the desired install directory of Pico within the `httpdocs` directory (e.g. `/var/www/html`) of your server. Download composer and run it with the `create-project` option:
|
||||||
|
|
||||||
###### Step 1 - for developers
|
|
||||||
|
|
||||||
Open a shell and navigate to the desired install directory of Pico within the `httpdocs` directory (e.g. `/var/www/html`) of your server. You can now clone Pico's Git repository as follows:
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ git clone https://github.com/picocms/Pico.git .
|
$ curl -sSL https://getcomposer.org/installer | php
|
||||||
|
$ php composer.phar create-project picocms/pico-composer .
|
||||||
```
|
```
|
||||||
Please note that this gives you the current development version of Pico, what is likely *unstable* and *not ready for production use*!
|
|
||||||
|
|
||||||
###### Step 2
|
###### Step 2
|
||||||
|
|
||||||
Download [composer][] and run it with the `install` option:
|
What second step? There's no second step. That's it! Open your favorite web browser and navigate to your brand new, stupidly simple, blazing fast, flat file CMS! Pico's default contents will explain how to create your own contents. 😊
|
||||||
|
|
||||||
|
### I want to use a pre-bundled release
|
||||||
|
|
||||||
|
Do you know the feeling: I want to install a new website, upload all files of my favorite CMS and run the setup script - just to find out that I forgot about creating the SQL database first? Later the setup script tells me that my file permissions are wrong. Heck, what does this even mean? Forget about it, Pico is different!
|
||||||
|
|
||||||
|
###### Step 1
|
||||||
|
|
||||||
|
[Download the latest Pico release][LatestRelease] and upload all files to the `httpdocs` directory (e.g. `/var/www/html`) of your server.
|
||||||
|
|
||||||
|
###### Step 2
|
||||||
|
|
||||||
|
Okay, here's the catch: There's no catch. That's it! Open your favorite web browser and navigate to your brand new, stupidly simple, blazing fast, flat file CMS! Pico's default contents will explain how to create your own contents. 😊
|
||||||
|
|
||||||
|
### I'm a developer
|
||||||
|
|
||||||
|
So, you're one of these amazing folks making all of this possible? We love you guys! As a developer we recommend you to clone [Pico's Git repository][PicoGit] and use composer to install its dependencies. You can find both [Pico][PicoPackagist] and [Pico's composer starter project][PicoComposerPackagist] on [Packagist.org][Packagist]. Using Pico's Git repository is different from using one of the installation methods elucidated above, because it uses Pico as the composer root package. Furthermore it gives you the current development version of Pico, what is likely *unstable* and *not ready for production use*!
|
||||||
|
|
||||||
|
Open a shell and navigate to the desired install directory of Pico within the `httpdocs` directory (e.g. `/var/www/html`) of your server. You can now clone Pico's Git repository, download composer and install Pico's dependencies as follows:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ curl -sS https://getcomposer.org/installer | php
|
$ git clone https://github.com/picocms/Pico.git .
|
||||||
|
$ curl -sSL https://getcomposer.org/installer | php
|
||||||
$ php composer.phar install
|
$ php composer.phar install
|
||||||
```
|
```
|
||||||
|
|
||||||
Upgrade
|
Upgrade
|
||||||
-------
|
-------
|
||||||
|
|
||||||
Upgrading Pico is very easy: You just have to replace all of Pico's files - that's it! Nevertheless you should *always* create a backup of your Pico installation before upgrading.
|
Do you remember when you installed Pico? It was ingeniously simple, wasn't it? Upgrading Pico is no difference! The upgrade process differs depending on whether you used [composer][] or a pre-bundled release to install Pico. Please note that you should *always* create a backup of your Pico installation before upgrading!
|
||||||
|
|
||||||
Pico follows [Semantic Versioning 2.0][SemVer] and uses version numbers like `MAJOR`.`MINOR`.`PATCH`. When we update...
|
Pico follows [Semantic Versioning 2.0][SemVer] and uses version numbers like `MAJOR`.`MINOR`.`PATCH`. When we update the `PATCH` version (e.g. `2.0.0` to `2.0.1`), we made backwards-compatible bug fixes. If we change the `MINOR` version (e.g. `2.0` to `2.1`), we added functionality in a backwards-compatible manner. Upgrading Pico is dead simple in both cases. Simply head over to the appropiate Upgrade sections below.
|
||||||
|
|
||||||
- the `PATCH` version (e.g. `1.0.0` to `1.0.1`), we made backwards-compatible bug fixes. It's then sufficient to extract [Pico's latest release][LatestRelease] to your existing installation directory and overwriting all files. Alternatively you can either use the [*source code* of Pico's latest release][LatestRelease] or pull from Pico's Git repository, but are then required to update Pico's [composer][] dependencies manually by running `php composer.phar update`.
|
But wait, we forgot to mention what happens when we update the `MAJOR` version (e.g. `2.0` to `3.0`). In this case we made incompatible API changes. We will then provide a appropriate upgrade tutorial, so please head over to the ["Upgrade" page on our website][HelpUpgrade].
|
||||||
|
|
||||||
- the `MINOR` version (e.g. `1.0` to `1.1`), we added functionality in a backwards-compatible manner, but anyway recommend you to "install" Pico newly. Backup all of your files, empty your installation directory and install Pico as elucidated above. You can then copy your `config/config.php` and `content` directory without any change. If applicable, you can also copy the folder of your custom theme within the `themes` directory. Provided that you're using plugins, also copy all of your plugins from the `plugins` directory.
|
### I've used composer to install Pico
|
||||||
|
|
||||||
- the `MAJOR` version (e.g. `1.0` to `2.0`), we made incompatible API changes. We will then provide a appropriate upgrade tutorial.
|
Upgrading Pico is dead simple if you've used composer to install Pico. Simply open a shell and navigate to Pico's install directory within the `httpdocs` directory (e.g. `/var/www/html/pico`) of your server. You can now upgrade Pico using just a single command:
|
||||||
|
|
||||||
Upgrading Pico 0.8 or 0.9 to Pico 1.0 is a special case. The new `PicoDeprecated` plugin ensures backwards compatibility, so you basically can follow the above upgrade instructions as if we updated the `MINOR` version. However, we recommend you to take some further steps to confine the necessity of `PicoDeprecated` as far as possible. For more information about what has changed with Pico 1.0 and a step-by-step upgrade tutorial, please refer to the [upgrade page of our website][HelpUpgrade].
|
|
||||||
|
|
||||||
Run
|
|
||||||
---
|
|
||||||
|
|
||||||
You have nothing to consider specially, simply navigate to your Pico install using your favorite web browser. Pico's default contents will explain how to use your brand new, stupidly simple, blazing fast, flat file CMS.
|
|
||||||
|
|
||||||
#### You don't have a web server?
|
|
||||||
|
|
||||||
Starting with PHP 5.4 the easiest way to try Pico is using [the built-in web server of PHP][PHPServer]. Please note that PHPs built-in web server is for development and testing purposes only!
|
|
||||||
|
|
||||||
###### Step 1
|
|
||||||
|
|
||||||
Navigate to Pico's installation directory using a shell.
|
|
||||||
|
|
||||||
###### Step 2
|
|
||||||
|
|
||||||
Start PHPs built-in web server:
|
|
||||||
```shell
|
```shell
|
||||||
$ php -S 127.0.0.1:8080
|
$ php composer.phar update
|
||||||
```
|
```
|
||||||
|
|
||||||
###### Step 3
|
That's it! composer will automatically update Pico and all plugins and themes you've installed using composer. Please make sure to manually update all plugins and themes you've installed manually.
|
||||||
|
|
||||||
Access Pico from http://localhost:8080.
|
### I've used a pre-bundled release to install Pico
|
||||||
|
|
||||||
|
Okay, installing Pico was easy, but upgrading Pico is going to be hard, isn't it? I'm affraid I have to disappoint you... It's just as simple as installing Pico!
|
||||||
|
|
||||||
|
First you'll have to delete the `vendor` directory of your Pico installation (e.g. if you've installed Pico to `/var/www/html/pico`, delete `/var/www/html/pico/vendor`). Then [download the latest Pico release][LatestRelease] and upload all files to your existing Pico installation directory. You will be prompted whether you want to overwrite files like `index.php`, `.htaccess`, ... - simply hit "Yes".
|
||||||
|
|
||||||
|
That's it! Now that Pico is up-to-date, you need to update all plugins and themes you've installed.
|
||||||
|
|
||||||
|
### I'm a developer
|
||||||
|
|
||||||
|
As a developer you should be up-to-date already... 😉 For the sake of completeness, if you want to upgrade Pico, simply open a shell and navigate to Pico's install directory within the `httpdocs` directory (e.g. `/var/www/html/pico`) of your server. Then pull the latest commits from [Pico's Git repository][PicoGit] and let composer update your dependencies:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
$ git pull
|
||||||
|
$ php composer.phar update
|
||||||
|
```
|
||||||
|
|
||||||
Getting Help
|
Getting Help
|
||||||
------------
|
------------
|
||||||
|
|
||||||
#### Getting Help as a user
|
#### Getting Help as a user
|
||||||
|
|
||||||
If you want to get started using Pico, please refer to our [user docs][HelpUserDocs]. Please read the [upgrade notes][HelpUpgrade] if you want to upgrade from Pico 0.8 or 0.9 to Pico 1.0. You can find officially supported [plugins][OfficialPlugins] and [themes][OfficialThemes] on our website. A greater choice of third-party plugins and themes can be found in our [Wiki][] on the [plugins][WikiPlugins] or [themes][WikiThemes] pages respectively. If you want to create your own plugin or theme, please refer to the "Getting Help as a developer" section below.
|
If you want to get started using Pico, please refer to our [user docs][HelpUserDocs]. Please read the [upgrade notes][HelpUpgrade] if you want to upgrade from Pico 1.0 to Pico 2.0. You can find officially supported [plugins][OfficialPlugins] and [themes][OfficialThemes] on our website. A greater choice of third-party plugins and themes can be found in our [Wiki][] on the [plugins][WikiPlugins] or [themes][WikiThemes] pages respectively. If you want to create your own plugin or theme, please refer to the "Getting Help as a developer" section below.
|
||||||
|
|
||||||
#### Getting Help as a developer
|
#### Getting Help as a developer
|
||||||
|
|
||||||
If you're a developer, please refer to the "Contributing" section below and our [contribution guidelines][ContributionGuidelines]. To get you started with creating a plugin or theme, please read the [dev docs on our website][HelpDevDocs].
|
If you're a developer, please refer to the "Contributing" section below and our [contribution guidelines][ContributionGuidelines]. To get you started with creating a plugin or theme, please read the [developer docs on our website][HelpDevDocs].
|
||||||
|
|
||||||
#### You still need help or experience a problem with Pico?
|
#### You still need help or experience a problem with Pico?
|
||||||
|
|
||||||
|
@ -111,17 +123,19 @@ You want to contribute to Pico? We really appreciate that! You can help make Pic
|
||||||
|
|
||||||
1. Plugins & Themes: You're a plugin developer or theme designer? We love you guys! You can find tons of information about how to develop plugins and themes at http://picocms.org/development/. If you have created a plugin or theme, please add it to our [Wiki][], either on the [plugins][WikiPlugins] or [themes][WikiThemes] page. You may also [Submit][] it to our website, where it'll be displayed on the official [plugin][OfficialPlugins] or [theme][OfficialThemes] pages!
|
1. Plugins & Themes: You're a plugin developer or theme designer? We love you guys! You can find tons of information about how to develop plugins and themes at http://picocms.org/development/. If you have created a plugin or theme, please add it to our [Wiki][], either on the [plugins][WikiPlugins] or [themes][WikiThemes] page. You may also [Submit][] it to our website, where it'll be displayed on the official [plugin][OfficialPlugins] or [theme][OfficialThemes] pages!
|
||||||
|
|
||||||
2. Documentation: We always appreciate people improving our documentation. You can either improve the [inline user docs][EditInlineDocs] or the more extensive [user docs on our website][EditUserDocs]. You can also improve the [docs for plugin and theme developers][EditDevDocs]. Simply fork Pico from https://github.com/picocms/Pico, change the Markdown files and open a [pull request][PullRequests].
|
2. Documentation: We always appreciate people improving our documentation. You can either improve the [inline user docs][EditInlineDocs] or the more extensive [user docs on our website][EditUserDocs]. You can also improve the [docs for plugin and theme developers][EditDevDocs]. Simply fork our website's Git repository from https://github.com/picocms/picocms.github.io, change the Markdown files and open a [pull request][PullRequestsWebsite].
|
||||||
|
|
||||||
3. Pico's Core: The supreme discipline is to work on Pico's Core. Your contribution should help *every* Pico user to have a better experience with Pico. If this is the case, fork Pico from https://github.com/picocms/Pico and open a [pull request][PullRequests]. We look forward to your contribution!
|
3. Pico's Core: The supreme discipline is to work on Pico's Core. Your contribution should help *every* Pico user to have a better experience with Pico. If this is the case, fork Pico from https://github.com/picocms/Pico and open a [pull request][PullRequests]. We look forward to your contribution!
|
||||||
|
|
||||||
By contributing to Pico, you accept and agree to the *Developer Certificate of Origin* for your present and future contributions submitted to Pico. Please refer to the ["Developer Certificate of Origin" section in our `CONTRIBUTING.md`][ContributionGuidelinesDCO].
|
By contributing to Pico, you accept and agree to the *Developer Certificate of Origin* for your present and future contributions submitted to Pico. Please refer to the ["Developer Certificate of Origin" section in our `CONTRIBUTING.md`][ContributionGuidelinesDCO].
|
||||||
|
|
||||||
[Packagist.org]: http://packagist.org/packages/picocms/pico
|
|
||||||
[LatestRelease]: https://github.com/picocms/Pico/releases/latest
|
|
||||||
[composer]: https://getcomposer.org/
|
[composer]: https://getcomposer.org/
|
||||||
|
[LatestRelease]: https://github.com/picocms/Pico/releases/latest
|
||||||
|
[PicoGit]: https://github.com/picocms/Pico
|
||||||
|
[PicoPackagist]: http://packagist.org/packages/picocms/pico
|
||||||
|
[PicoComposerPackagist]: http://packagist.org/packages/picocms/pico-composer
|
||||||
|
[Packagist]: http://packagist.org/
|
||||||
[SemVer]: http://semver.org
|
[SemVer]: http://semver.org
|
||||||
[PHPServer]: http://php.net/manual/en/features.commandline.webserver.php
|
|
||||||
[HelpUpgrade]: http://picocms.org/in-depth/upgrade/
|
[HelpUpgrade]: http://picocms.org/in-depth/upgrade/
|
||||||
[HelpUserDocs]: http://picocms.org/docs/
|
[HelpUserDocs]: http://picocms.org/docs/
|
||||||
[HelpDevDocs]: http://picocms.org/development/
|
[HelpDevDocs]: http://picocms.org/development/
|
||||||
|
@ -134,6 +148,7 @@ By contributing to Pico, you accept and agree to the *Developer Certificate of O
|
||||||
[Issues]: https://github.com/picocms/Pico/issues
|
[Issues]: https://github.com/picocms/Pico/issues
|
||||||
[IssuesSearch]: https://github.com/picocms/Pico/search?type=Issues
|
[IssuesSearch]: https://github.com/picocms/Pico/search?type=Issues
|
||||||
[PullRequests]: https://github.com/picocms/Pico/pulls
|
[PullRequests]: https://github.com/picocms/Pico/pulls
|
||||||
|
[PullRequestsWebsite]: https://github.com/picocms/picocms.github.io/pulls
|
||||||
[ContributionGuidelines]: https://github.com/picocms/Pico/blob/master/CONTRIBUTING.md
|
[ContributionGuidelines]: https://github.com/picocms/Pico/blob/master/CONTRIBUTING.md
|
||||||
[ContributionGuidelinesDCO]: https://github.com/picocms/Pico/blob/master/CONTRIBUTING.md#developer-certificate-of-origin
|
[ContributionGuidelinesDCO]: https://github.com/picocms/Pico/blob/master/CONTRIBUTING.md#developer-certificate-of-origin
|
||||||
[EditInlineDocs]: https://github.com/picocms/Pico/edit/master/content-sample/index.md
|
[EditInlineDocs]: https://github.com/picocms/Pico/edit/master/content-sample/index.md
|
||||||
|
|
Loading…
Reference in a new issue