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

Deploy dist/build folder only #410

Closed
edemking opened this issue Jul 23, 2023 · 6 comments
Closed

Deploy dist/build folder only #410

edemking opened this issue Jul 23, 2023 · 6 comments

Comments

@edemking
Copy link

Hi there,

There comes a time you would like to deploy just the built files only.

Even as you have "Build and Publish React/Angular/Vue Website" there could be a request by someone to deploy to a different server and you may want to deploy just the built files.

How can that be done?

Please help.

@sudo-which-qp
Copy link

Hi there,

There comes a time you would like to deploy just the built files only.

Even as you have "Build and Publish React/Angular/Vue Website" there could be a request by someone to deploy to a different server and you may want to deploy just the built files.

How can that be done?

Please help.

Hi @edemking I had some issues but went through the docs and saw you can do this by adding this commands on the "with" call

with:
   server: ${{ secrets.ftp_server }}
   username: ${{ secrets.ftp_username }}
   password: ${{ secrets.ftp_password }}
   server-dir: /public_html/
   dangerous-clean-slate: true
   local-dir: ./dist/

This should help you out and you can close this issue... Thank You

@NixLoar
Copy link

NixLoar commented Aug 29, 2023

Hello!
I'm having an issue with local-dir. When I try to push, the action returns an 550 error :

FTPError: 550 Can't change directory to /public_html/dist: No such file or directory

Here's my code:

with:
      server: ${{ secrets.ftp_host }}
      username: ${{ secrets.ftp_username }}
      password: ${{ secrets.ftp_password }}
      server-dir: public_html/
      local-dir: ./dist/

@sudo-which-qp
Copy link

Hello! I'm having an issue with local-dir. When I try to push, the action returns an 550 error :

FTPError: 550 Can't change directory to /public_html/dist: No such file or directory

Here's my code:

with:
      server: ${{ secrets.ftp_host }}
      username: ${{ secrets.ftp_username }}
      password: ${{ secrets.ftp_password }}
      server-dir: public_html/
      local-dir: ./dist/

I really did not create an FTP account to make use of this, I used my server username and password, it worked just fine, and please verify you are not ignoring the dist file and also please verify you are using yarn and not npm

yarn uses dist while npm uses build

Please verify your build folder name

I hope this helps

@edemking
Copy link
Author

edemking commented Sep 6, 2023

@quiet-programmer your solution worked for me. Thanks for the help.

@sudo-which-qp
Copy link

@quiet-programmer your solution worked for me. Thanks for the help.

No problem at all, you can go ahead to close this issue now

@edemking
Copy link
Author

edemking commented Sep 6, 2023

Great... in the absence of any other problem, I am closing the issue.

@edemking edemking closed this as completed Sep 6, 2023
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

3 participants