Update
This guide will walk you through the process of updating your Picstome installation to the latest version.
Automatic Update
We've created a simple update script that handles the entire process automatically. This is the easiest and most reliable way to update Picstome.
Step 1: Connect to Your Server
First, connect to your server via SSH:
On Windows:
- Open PuTTY
- Enter your server's IP address
- Click "Open" and enter your login details when prompted:
- Username: root
- Password: (your server password)
On Mac or Linux:
- Open Terminal
- Type:
ssh root@YOUR_SERVER_IP
(replaceYOUR_SERVER_IP
with your actual IP) - Enter your password when prompted
Step 2: Run the Update Script
Once connected to your server, run the following command:
curl -fsSL https://picstome.com/update.sh | sh
This script will:
- Pull the latest code from our repository
- Update all dependencies
- Run database migrations
- Rebuild assets
- Update permissions
- Restart necessary services
Step 3: Verify the Update
After the update completes, visit your Picstome website to verify everything is working correctly.
Troubleshooting Update Issues
If you encounter any issues during the update process:
-
Check the logs: Most errors will be recorded in Laravel's log file:
tail -n 100 /var/www/picstome/storage/logs/laravel.log
-
Database errors: If you encounter database migration errors, try:
php artisan migrate:status
-
Permission issues: If you're seeing permission errors, run:
chown -R www-data:www-data /var/www/picstome
chmod -R 775 /var/www/picstome/storage /var/www/picstome/bootstrap/cache -
Check for conflicts: If you've made local changes, you might need to resolve git conflicts:
git status
Getting Help
If you continue to experience issues with the update process:
- Visit our GitHub repository to report the issue
- Check our documentation for more information
- Review our support options for additional assistance
Remember to include any error messages and details about your environment when seeking help.