forked from jelastic-jps/laravel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.jps
60 lines (50 loc) · 1.54 KB
/
manifest.jps
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version: '1.4.2'
appVersion: latest
type: install
id: laravel
name: Laravel
baseUrl: https://raw.githubusercontent.com/jelastic-jps/laravel/master
logo: /images/logo-transparent.png
homepage: http://www.laravel.com/
categories:
- apps/dev-and-admin-tools
description:
text: /texts/description.md
short: Open-source PHP web framework for rapid development
globals:
laravelroot: /var/www/webroot/ROOT
nodes:
- cloudlets: 16
nodeType: apache
onInstall:
- laravelconfig
- laravelexecutable-install
- newdb-project-script
- restartNodes:
- nodeGroup: [cp]
actions:
laravelconfig:
cmd[cp]: |-
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/bin/composer
chmod +x /usr/bin/composer
cd ${globals.laravelroot}
git clone https://github.com/laravel/laravel.git
cd ${globals.laravelroot}/laravel
composer install
chown -R apache.apache ${globals.laravelroot}/laravel
chmod -R 755 ${globals.laravelroot}/laravel
cp .env.example .env
php artisan key:generate
user: root
laravelexecutable-install:
cmd[cp]:
composer global require "laravel/installer";
echo 'export PATH="~/webroot/ROOT/laravel/vendor/bin/:~/.config/composer/vendor/bin/:$PATH"' >> /var/www/.bashrc;
newdb-project-script:
cmd[cp]:
cd ${globals.laravelroot};
wget https://raw.githubusercontent.com/jelastic-jps/laravel/master/scripts/newdb-project.sh -O newdb-project.sh;
chmod +x newdb-project.sh;
startPage: /laravel/public
success: /texts/success.md