-
Notifications
You must be signed in to change notification settings - Fork 293
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 an online demo website like “https://marimo.app/” on my own server #2153
Comments
Hi @Viper373 - would any of these deployment options work for you https://docs.marimo.io/guides/deploying/index.html#deploying |
Forgive me for taking the liberty! I've tried deploying with docker, is there any requirement for me to create my own app.py, such as importing certain modules or writing some code? Also, does docker deployment only require dockerfile, app.py, requirements.txt? Finally, is there any support for reverse proxy so I can bind marimo to my own domain? A million thanks for your help! |
hey @Viper373 - yep If you can set up a reverse proxy, we have a flag |
Going to close - let me know if you have more questions or hop in our discord https://marimo.io/discord |
@mscolnick
# -*- coding: utf-8 -*-
#
# 作者:Viper3
# 邮箱:[email protected]
# 文件:app.py
# 网址:viper3.top
#
# 版权所有(c)2023-2024 Viper3。保留所有权利。
#
# 此站点基于marimo docker 部署。有关详细信息,请参阅marimo.io。
#
# 说明:
# 这是一个基于marimo部署的未来化jupyter在线编辑器。
#
# 用途:
# 运行此脚本以执行应用程序。
def main():
"""
主程序入口
"""
print("Welcome Viper3's Marimo!")
if __name__ == "__main__":
main()
I've successfully pulled the image, which is about 2G in size, and then I start the container and error with the following log: Traceback (most recent call last):
File "/usr/local/bin/marimo", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/marimo/_cli/cli.py", line 582, in run
codegen.get_app(name)
File "/usr/local/lib/python3.9/site-packages/marimo/_ast/codegen.py", line 230, in get_app
raise MarimoFileError(f"{filename} missing attribute `app`.")
marimo._ast.codegen.MarimoFileError: app.py missing attribute `app`. The hints in the logs are clear, the problem is in app.py, it seems that no marimo related code is written, is this problem mentioned in the documentation? |
yes, |
I'd like to know what the sample app.py looks like. |
I think maybe there is some confusion. It seems like you don't have an existing marimo notebook. Instead, you want to deploy an interactive code editor scratchpad - basically, you want to deploy something like marimo.app. Is that correct? If you want to deploy a server that allows people to edit notebooks ("edit server"), there are some instructions here: https://docs.marimo.io/guides/deploying/index.html#deploying-an-edit-server. For this case there is no app.py. In particular, you should not follow the instructions about deploying as read-only apps, because it doesn't seem like you want that functionality. |
Much appreciated! I've pulled the mirror “marimo-team/marimo:latest-sql” as deployed on railway, and then bound the domain “marimo.viper3.top” through a reverse proxy, could you please visit the site and help me check if the deployment is correct and complete! |
Documentation is
Explain in Detail
Dear marimo development team:
Hello, I'm a Chinese github user, I've read the marimo deployment docs, and I can't seem to find a suitable deployment method.
Your Suggestion for Changes
My requirement is to deploy an online demo website like “https://marimo.app/” on my own server (so that my friends can program online via my website , preferably via docker, so that I can bind a custom domain name via reverse proxy, it's okay if it's not docker).
Would you please provide me with a suitable deployment plan with detailed steps or other alternatives?
The text was updated successfully, but these errors were encountered: