-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.just
More file actions
16 lines (15 loc) · 939 Bytes
/
setup.just
File metadata and controls
16 lines (15 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Scaffold Symfony project and install dependencies
#
# Uses /tmp for scaffolding because symfony new requires an empty directory.
# Unlike Node.js, PHP's vendor/ uses relative paths so copying works fine.
[no-exit-message]
default:
scdev start -q
@scdev step "Installing Composer and Symfony CLI"
scdev exec app sh -c "apk add --no-cache bash && wget -qO- https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && wget https://get.symfony.com/cli/installer -O - 2>/dev/null | bash && cp \$HOME/.symfony5/bin/symfony /usr/local/bin/symfony"
@scdev step "Scaffolding Symfony project"
scdev exec app symfony new /tmp/app --no-git
@scdev step "Copying project files"
scdev exec app sh -c "cp -r /tmp/app/. /app/ && rm -rf /tmp/app && echo '.setup-complete' >> .gitignore && touch .setup-complete"
@scdev step "Setup complete! App will start automatically."
scdev info