Add nitrous.io quickstart config and update README

This commit is contained in:
yeouchien 2016-04-04 07:27:14 +00:00
parent e832ff0bf8
commit c824580129
3 changed files with 29 additions and 1 deletions

View File

@ -11,6 +11,16 @@ Lychee is a free photo-management tool, which runs on your server or web-space.
To run Lychee, everything you need is a web-server with PHP 5.5 or later and a MySQL-Database. Follow the instructions to install Lychee on your server. [Installation »](docs/Installation.md) To run Lychee, everything you need is a web-server with PHP 5.5 or later and a MySQL-Database. Follow the instructions to install Lychee on your server. [Installation »](docs/Installation.md)
## Nitrous Quickstart
Create a free development environment for this Lychee project in the cloud on [Nitrous.io](https://www.nitrous.io) by clicking the button below.
<a href="https://www.nitrous.io/quickstart">
<img src="https://nitrous-image-icons.s3.amazonaws.com/quickstart.png" alt="Nitrous Quickstart" width=142 height=34>
</a>
Simply access your site via the `Preview > 3000` link in the IDE.
## How to use ## How to use
You can use Lychee right after the installation. Here are some advanced features to get the most out of it. You can use Lychee right after the installation. Here are some advanced features to get the most out of it.

9
README.nitrous.md Normal file
View File

@ -0,0 +1,9 @@
# Setup
Welcome to your Lychee project on Nitrous.
Now you've got a development server running and can see the output in the Nitrous terminal window. You can open up a new shell or utilize [tmux](https://community.nitrous.io/docs/tmux) to open new shells to run other commands.
## Preview the app
In the Nitrous IDE, open the "Preview" menu and click "Port 3000".

9
nitrous.json Normal file
View File

@ -0,0 +1,9 @@
{
"template": "php-apache",
"ports": [3000],
"name": "Lychee",
"description": "A great looking and easy-to-use photo-management-system you can run on your server, to manage and share photos.",
"scripts": {
"post-create": "rm -rf ~/code/public_html && cd ~/code && mv Lychee public_html && sudo chown -R nitrous:www-data public_html && sudo chmod -R g+w public_html && cd public_html && sudo chmod -R 777 uploads/ data/"
}
}