benoit-bremaud / angular-social-network

Angular is better than Somfony
MIT License
1 stars 0 forks source link

Deploying the Backend on Plesk. #33

Open benoit-bremaud opened 3 months ago

benoit-bremaud commented 3 months ago

Step-by-Step Guide to Deploy Backend on Plesk Prerequisites

benoit-bremaud commented 3 months ago
benoit-bremaud commented 3 months ago

It sounds like the branch hasn't been pushed to the remote repository yet. Let's make sure you create and push the branch correctly.

Step-by-Step Instructions to Create and Publish a Branch

  1. Create the new branch:

    Ensure you're on the main branch and it's up-to-date:

    git checkout main
    git pull origin main

    Create the new branch for the deployment process:

    git checkout -b feature/deploy-backend-plesk
  2. Make your changes:

    Make any necessary changes for the deployment, such as removing the Heroku configurations and adding new Plesk configurations.

  3. Commit the changes:

    Add and commit your changes:

    git add .
    git commit -m "chore(deployment): setup deployment for Plesk"
  4. Push the branch to the remote repository:

    Publish the new branch to GitHub:

    git push -u origin feature/deploy-backend-plesk

Checking the Branch on GitHub

  1. Verify on GitHub:
    • Go to your GitHub repository.
    • Click on the "Branches" tab to ensure the feature/deploy-backend-plesk branch is listed.

Summary

  1. Create a new branch:

    git checkout -b feature/deploy-backend-plesk
  2. Make your changes and commit them:

    git add .
    git commit -m "chore(deployment): setup deployment for Plesk"
  3. Push the branch to GitHub:

    git push -u origin feature/deploy-backend-plesk

Once the branch is pushed and published on GitHub, you can proceed with the pull request and the rest of the deployment steps as outlined previously. If you encounter any issues or need further assistance, please let me know!

benoit-bremaud commented 3 months ago

Step 2: Upload Your Backend Files to Plesk Log in to your Plesk account:

Open your web browser and log in to your Plesk control panel. Navigate to the domain or subdomain where you want to deploy your backend.

Go to Websites & Domains and select the domain or subdomain. Open the File Manager:

Click on File Manager to manage the files for the selected domain. Upload your backend files:

Use the Upload button to upload your project files (or use an FTP client to upload your files to the appropriate directory). Ensure your project files are in the correct directory:

Typically, you will place your backend files in a directory like httpdocs or a subdirectory under it.