-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdev.sh
More file actions
executable file
·25 lines (22 loc) · 827 Bytes
/
dev.sh
File metadata and controls
executable file
·25 lines (22 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
cd /srv
if [[ "$1" == "SETUP" ]]; then
composer config http-basic.nova.laravel.com "$NOVA_USERNAME" "$NOVA_API_KEY" --no-interaction
COMPOSER_MEMORY_LIMIT=-1 composer install --no-interaction
cp fortawesome* ../
npm install
npm run development
else
COMPOSER_MEMORY_LIMIT=-1 composer install --no-interaction
npm install
npm run development
# PHP dev server doesn't have a way of handling a static folder seperately
# so just symlink these where the app expects them.
ln -s /srv/public/assets /srv/assets
ln -s /srv/public/fonts /srv/fonts
ln -s /srv/public/vendor /srv/vendor
ln -s /srv/public/images /srv/images
ln -s /srv/public/vendor/nova /srv/vendor/nova
ln -s /srv/public/categories /srv/categories
php -S 0.0.0.0:3000 /srv/server.php
fi