20 lines
359 B
Bash
Executable File
20 lines
359 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
echo "Building React app..."
|
|
npm run build
|
|
|
|
echo "Copying React build files to Laravel public folder..."
|
|
|
|
# Copy index.html to public root
|
|
cp dist/index.html /home/mark/migrants/public/index.html
|
|
|
|
# Copy assets folder contents to public/assets folder
|
|
cp -r dist/assets/* /home/mark/migrants/public/assets/
|
|
|
|
echo "Deployment complete!"
|
|
|
|
|
|
|
|
|