Enable the Firewall
|
Install node.js
|
Install rbenv
|
Install ruby 2.6.5
|
Install postgresql
|
Install nginx
|
Generate ssh key
|
Install HTTPS
Largely following certbot guide
|
|
|
|
|
|
|
|
Largely following certbot guide
|
Running CentOS 7 as operation system for Rails is very stable, but such stability comes with stagnation, for example, the sqlite3 version is 3.7 instead of 3.8, so cause Rails 6 refused to run in CentOS 7 withouth install a third party sqlite3 version.
So a quickly fix is install atomic sqlite and setting the correct build options.
|
Maybe also need to do a patch but any way, I successfully upgrade to Rails 6.
|
List all table size.
|
Find table name.
|
After research 1 hours, I answered in the SO
|
|
微信AI开放接口, require that interface.
|
Running rails test:system in my local dev always pending and timeout problem haunted me for a long time, finally, I know why.
Due to some change introduced in Google, every time a new chromedriver installed using brew, the first time running always need to download a file from storage.l.googleusercontent.com. but due to there is GFW in China, it always pending.
So resolved is quite simple, make sure you running ruby.exe(or binary of ruby) when first time can access google site and that's it.
You need to make sure only once per every new version, that's it!
|
|
|
|
|
It's a little hard to find out the root cause why out of box Pentaho Data Integration not working, any way, it's resolved.
First need java 8 to install, because Oracle refuse to provide, need OpenJDK instead.
|
Also need change JavaApplicationStub file as below. (Maybe Pentaho developer didin't having a MBP...)
|
If you want to continue using Java 12 in system wide, install brew install jenv and running jenv local 1.8 at data-integration folder.
You could also setting below environment variable:
|
用Rails做企业官网虽然不是现在的流行方式,但是考虑到Rails的灵活性和后端开发的方便性,在某些情况下,还是相比现在最火的JAM gatsby.js更实际。
企业官网一般图片等静态资源非常多,但是用Rails的话,由于很低的访问量,去购买一台高带宽的服务器又很不划算,所幸的是,阿里云的OSS提供了回源,通过适当的配置,就可以将那些大图片,大字体移到按流量付费的OSS上,获得极大的速度提升,基本原理如下:
|
配置方法也非常简单,新建一个OSS Bucket,例如上图中的名字thape-assets
公共读assets/,回源地址为 https://www.thape.com.cn/最后在Rails中的 config/environments/production.rb 中,启用新的OSS地址即可。
|