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 to run it #4

Open
ignat-admin opened this issue Mar 6, 2024 · 7 comments
Open

how to run it #4

ignat-admin opened this issue Mar 6, 2024 · 7 comments

Comments

@ignat-admin
Copy link

I don't quite understand how to run this application,
can you explain in more detail?

@esin
Copy link
Owner

esin commented Mar 6, 2024

  1. You should have Linux
  2. You should install Docker
  3. Clone telegram_online
  4. Run ./run_docker.sh and enter necessary information
  5. Press ctrl+s to stop container
  6. Run again ./run_docker.sh :)
  7. Done

@ignat-admin
Copy link
Author

Will it be possible to run this on Windows?

@esin
Copy link
Owner

esin commented Mar 7, 2024

Well, really - don't know
Don't have any Windows :(

I think, if you have Docker, you can try to open run_docker.sh with notepad and copy commands from it into command line and may it will work

May be(!) run_docker.sh will work with WSL (have never seen it, but hope dies last)

@ignat-admin ignat-admin closed this as not planned Won't fix, can't repro, duplicate, stale Mar 7, 2024
@ignat-admin ignat-admin reopened this Mar 7, 2024
@ignat-admin
Copy link
Author

ignat-admin commented Mar 7, 2024

I did, you need to create a .py file and place it in a shared folder, here are its contents:
import os

if not os.path.exists("session.madeline"):
print("First run")
os.system('docker run -ti -v %cd%:/app hub.madelineproto.xyz/danog/madelineproto:latest php /app/online.php')
else:
os.system('docker run --restart always -d --name telegram_online -v %cd%:/app hub.madelineproto.xyz/danog/madelineproto:latest php /app/online.php')

@ignat-admin
Copy link
Author

а можно эту прогу сделать без докера, он чет комп грузит

@esin
Copy link
Owner

esin commented Mar 8, 2024

а можно эту прогу сделать без докера, он чет комп грузит

Да, конечно, но необходимо настроить окружение для запуска php скрипта

Готовый docker образ обеспечивает это окружение

@jooblex
Copy link

jooblex commented Sep 16, 2024

Блин, всё равно не понятно

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