Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FTPError: 550 Can't change directory to storage: No such file or directory #478

Open
Amankhalsa opened this issue Sep 1, 2024 · 1 comment

Comments

@Amankhalsa
Copy link

Amankhalsa commented Sep 1, 2024

`name: 🚀 Deploy website on push
on:
push:
branches:
- main
jobs:
web-deploy:
name: 🎉 Deploy
runs-on: ubuntu-latest
env:
LARAVEL_BYPASS_ENV_CHECK: 1 # Set the environment variable
steps:
# - name: Get the latest code
- name: 🚚 Get latest code
uses: actions/checkout@v4
# uses: actions/checkout@v4
# uses: actions/checkout@v2.3.2
- uses: actions/setup-node@master
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- name: Set DB_DATABASE, DB_USERNAME, and DB_PASSWORD
run: |
sed -i "s/DB_DATABASE=./DB_DATABASE=${{ secrets.DB_DATABASE }}/" .env
sed -i "s/DB_USERNAME=.
/DB_USERNAME=${{ secrets.DB_USERNAME }}/" .env
sed -i "s/DB_PASSWORD=./DB_PASSWORD=${{ secrets.DB_PASSWORD }}/" .env
sed -i "s/APP_ENV=.
/APP_ENV=production/" .env
sed -i "s/APP_DEBUG=.*/APP_DEBUG=false/" .env

  - name: Install Dependencies
    run: composer update --ignore-platform-reqs
  - name: Generate key
    run: php artisan key:generate
  - name: Generate storage link
    run: php artisan storage:link
  - name: Directory Permissions
    run: chmod -R 777 storage bootstrap/cache
  - name: Clear Application Cache
    run: php artisan cache:clear
  - name: Compile Assets (npm run dev)
    run: npm install && npm run build
  - name: Publish Livewire Assets
    run: php artisan livewire:publish --assets
  - name: 📂 Sync files
    # uses: SamKirkland/FTP-Deploy-Action@4.0.0
    uses: SamKirkland/FTP-Deploy-Action@v4.3.5
    with:
      server: ${{ secrets.FTP_SERVER }}
      username: ${{ secrets.FTP_USERNAME }}
      password: ${{ secrets.FTP_PASSWORD }}
      server-dir: /mydir/

giterror
`

@kevingio
Copy link

any solution for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants