Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将[theme]代码添加到setup.sh文件以在Heroku上部署Streamlight应用程序_Heroku_Streamlit - Fatal编程技术网

将[theme]代码添加到setup.sh文件以在Heroku上部署Streamlight应用程序

将[theme]代码添加到setup.sh文件以在Heroku上部署Streamlight应用程序,heroku,streamlit,Heroku,Streamlit,我在Heroku上部署了Streamlight应用程序,Heroku使用的github中的setup.sh文件包含以下代码: mkdir -p ~/.streamlit/ echo " [server] port = $PORT enableCORS = false headless = true " > ~/.streamlit/config.toml 我不知道如何将[theme]代码添加到这个特定的文件config.toml中 [theme] primaryCo

我在Heroku上部署了Streamlight应用程序,Heroku使用的github中的setup.sh文件包含以下代码:

mkdir -p ~/.streamlit/

echo "
[server]
port = $PORT
enableCORS = false
headless = true
" > ~/.streamlit/config.toml
我不知道如何将[theme]代码添加到这个特定的文件config.toml中

[theme]
primaryColor = "F36295"
backgroundColor = "#F0FF33"
secondaryBackgroundColor = "#3183D1"
textColor = "#03080C"
font = "sans-serif"

我在我们发布的Youtube视频上看到了你的问题,实际上我已经试着回答你的问题好几天了!(好吧,天有点夸张,但在过去的24小时内有很多次)出于某种原因,Youtube不让我回复你(我终于能够通过Streamlight帐户得到一个似乎没有消失的回复(如果您想查看以下链接:

您所要做的就是将这些配置参数直接添加到config.toml文件中,就像您在那里看到的一样


Marisa

我把这个放在我的设置中,成功地使它工作起来。sh:

mkdir -p ~/.streamlit/

echo "[theme]
primaryColor = ‘#84a3a7’
backgroundColor = ‘#EFEDE8’
secondaryBackgroundColor = ‘#fafafa’
textColor= ‘#424242’
font = ‘sans serif’
[server]
headless = true
port = $PORT
enableCORS = false
" > ~/.streamlit/config.toml