forked from rchavik/croogo-app
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathMakefile
32 lines (26 loc) · 985 Bytes
/
Makefile
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
composer:
curl -sS https://getcomposer.org/installer | php
php composer.phar install
npm:
./Console/cake croogo aggregateManifestFile package.json
sudo npm install
bower:
./Console/cake croogo aggregateManifestFile bower.json
sudo ./node_modules/.bin/bower install --allow-root
build:
sudo ./node_modules/.bin/grunt build
update:
make npm
make bower
make composer
make build
nginx:
sudo cp /vagrant/etc/development/nginx/nginx.conf /etc/nginx/nginx.conf
sudo cp /vagrant/etc/development/nginx/sites-enabled/croogo /etc/nginx/sites-enabled/croogo
sudo service nginx restart
php:
sudo cp /vagrant/etc/development/php5/fpm/php.ini /etc/php5/fpm/php.ini || true
sudo cp /vagrant/etc/development/php5/fpm/php-fpm.conf /etc/php5/fpm/php-fpm.conf || true
sudo /usr/sbin/php5-fpm -c /etc/php5/fpm/php-fpm.conf -t || true
([ -x /etc/init.d/php5-fpm ] && sudo /etc/init.d/php5-fpm start) || true
([ -x /etc/init.d/php5-fpm ] && sudo /etc/init.d/php5-fpm reload) || true