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

How do I upgrade to V3.4 after Docker has deployed V3.3 #50

Closed
linyouye opened this issue Nov 24, 2023 · 8 comments
Closed

How do I upgrade to V3.4 after Docker has deployed V3.3 #50

linyouye opened this issue Nov 24, 2023 · 8 comments

Comments

@linyouye
Copy link

What would you like to share?

Docker 部署 V3.3 后,如何升级到V3.4

Additional information

No response

@kubbot
Copy link
Contributor

kubbot commented Nov 24, 2023

Hello! Thank you for filing an issue.

If this is a bug report, please include relevant logs to help us debug the problem.

Join slack 🤖 to connect and communicate with our developers.

@cubxxw cubxxw changed the title Docker 部署 V3.3 后,如何升级到V3.4 How do I upgrade to V3.4 after Docker has deployed V3.3 Nov 24, 2023
@cubxxw
Copy link
Contributor

cubxxw commented Nov 24, 2023

  1. Retrieve the Path of the Data:

    • Run the command in your terminal:

      cat .env | grep DATA_DIR
    • This will output the current value of DATA_DIR which should be something like DATA_DIR=${DATA_DIR}/components/.

  2. Copy the Path to a New Location:

    • After identifying the path, use the cp command to copy it:

      cp -r DATA_DIR/ /openim/data
    • Replace components/ with the actual path if it's different.

  3. Set the Environment Variable to the New Location:

    • Set the DATA_DIR environment variable to the new path:

      export DATA_DIR="/openim/data"
    • Note: This change is temporary and only applies to your current session. For a permanent change, you'll need to modify the .env file or your system's environment settings.

  4. Clone a New Repository and Initialize Variables:

    • Clone the new repository :

      git clone https://github.com/openimsdk/openim-docker
      
    • Navigate to the repository directory and run:

      make init
      
  5. Start Docker Containers:

    • Finally, start the Docker containers:

      docker compose up -d
      

Remember to adjust the commands according to your actual file paths and repository details. Also, ensure you have the necessary permissions to execute these commands and that Docker is properly installed and configured on your system.

In addition, we are currently considering developing a comprehensive upgrade plan. It would be greatly appreciated if you could pay attention to it and provide any assistance or guidance you may have. Your support would be invaluable to us.

@linyouye
Copy link
Author

Thanks for your guidance and I haved upgrade to V3.4 successfully.

But now I have a new question with V3.4
When I open ther Admin Web and try to login,It reports a CORS ERROR.

How can I customize the API URL

@linyouye
Copy link
Author

图片

@kubbot
Copy link
Contributor

kubbot commented Nov 24, 2023

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


图片

@kubbot
Copy link
Contributor

kubbot commented Jan 23, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@cubxxw
Copy link
Contributor

cubxxw commented Jan 23, 2024

@linyouye Has the issue at hand been resolved at this point in time?

@kubbot
Copy link
Contributor

kubbot commented Mar 24, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

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

No branches or pull requests

3 participants