不好意思,原文中忘了说了。 注册资本是认缴制,不需要注册公司的时候到账。理论上 0 元注册公司都可以。实际刻章、开户需要一点费用。
内存小的机器小心内存炸,webpack babel 编译还是很吃内存的
时间太久不记得了抱歉;现在 rails 自带 api
主要是用中文字符串变量生成的正则表达式带这个 mix,然后匹配经常莫名其妙失败(重启一下 rails 就好了)。这个问题有什么解决思路吗?
如何 escape 呢?URI.escape 似乎不是 \uXXXX
的形式
5.1 发布了?issues 上来看 rc 版 bug 很多呀
哈哈。抱歉,下次一定先写中文版。
这时候就需要万能的淘宝了,找不到的话联系我(GitHub 有邮箱)
国外服务器怎么没法备案?备案的时候看的你的域名,IP 只是个形式而已。 走个阿里云什么的备案,然后去 CDN 厂商绑定就好了。
不想备案的话用 CloudFlare 也行。实在不行买个 hk 的低配大流量 vps 反代。
Ruby worker or go worker?
需要注册公司的。没那么容易。
太全了!完整的小程序和后端 rails 项目都有,十分十分感谢!
楼主您好,有没有微信小程序的 gem?主要是用户信息 ID 的解密
#1 楼 @sefier
#1 楼 @sefier 直接取消 forgery_protection_origin_check
有点太粗暴了。
修改了 nginx.conf
user root;
worker_processes 4;
pid /var/www/pids/nginx.pid;
daemon off;
events {
worker_connections 768;
# multi_accept on;
}
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
# server_tokens off;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# Logging Settings
##
access_log /var/www/log/nginx-access.log;
error_log /var/www/log/nginx-error.log;
##
# Gzip Settings
##
gzip on;
gzip_disable "msie6";
# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
##
# nginx-naxsi config
##
# Uncomment it if you installed nginx-naxsi
##
#include /etc/nginx/naxsi_core.rules;
##
# nginx-passenger config
##
# Uncomment it if you installed nginx-passenger
##
#passenger_root /usr;
#passenger_ruby /usr/bin/ruby;
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
#mail {
# # See sample authentication script at:
# # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
#
# # auth_http localhost/auth.php;
# # pop3_capabilities "TOP" "USER";
# # imap_capabilities "IMAP4rev1" "UIDPLUS";
#
# server {
# listen localhost:110;
# protocol pop3;
# proxy on;
# }
#
# server {
# listen localhost:143;
# protocol imap;
# proxy on;
# }
#}
upstream [app]_backend {
server app:7000 fail_timeout=0;
keepalive 3;
}
server {
listen 80;
listen 443 ssl http2;
server_name [xxx];
# ~2 seconds is often enough for most folks to parse HTML/CSS and
# retrieve needed images/icons/frames, connections are cheap in
# nginx so increasing this is generally safe...
keepalive_timeout 5;
# path for static files
root /var/www/[app]/public;
access_log /var/www/log/[app]-access.log;
error_log /var/www/log/[app]-error.log;
# this rewrites all the requests to the maintenance.html
# page if it exists in the doc root. This is for capistrano's
# disable web task
if (-f $document_root/maintenance.html) {
rewrite ^(.*)$ /maintenance.html last;
break;
}
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
# If the file exists as a static file serve it directly without
# running all the other rewrite tests on it
if (-f $request_filename) {
break;
}
# check for index.html for directory index
# if it's there on the filesystem then rewrite
# the url to add /index.html to the end of it
# and then break to send it to the next config rules.
if (-f $request_filename/index.html) {
rewrite (.*) $1/index.html break;
}
# this is the meat of the rack page caching config
# it adds .html to the end of the url and then checks
# the filesystem for that file. If it exists, then we
# rewrite the url to have explicit .html on the end
# and then send it on its way to the next config rule.
# if there is no file on the fs then it sets all the
# necessary headers and proxies to our upstream pumas
if (-f $request_filename.html) {
rewrite (.*) $1.html break;
}
if (!-f $request_filename) {
proxy_pass http://[app]_backend;
break;
}
}
# Now this supposedly should work as it gets the filenames with querystrings that Rails provides.
# BUT there's a chance it could break the ajax calls.
location ~* \.(ico|css|gif|jpe?g|png|js)(\?[0-9]+)?$ {
expires max;
break;
}
# Error pages
# error_page 500 502 503 504 /500.html;
location = /500.html {
root /var/www/[app]/public;
}
}
电面过贵司,虽然最后没有去简直,但是作为老乡支持一个。 公司的电商平台:http://meiguogouwu.com 貌似最近改版过,不错!
超喜欢台湾,可惜大学毕业之后就不能办自由行签证了,哎
#1 楼 @lithium4010 任何名字都会这样
PHP 核心开发者 Laruence(鸟哥)在 QCon 2015 上说了这么一段话(大意):
我曾经用了 PHP 和某高级语言做 hello world 的 benchmark,结果某高级语言胜过 PHP 一个数量级。 然后我分别添加了一条 SQL 查询,它们变成了一个数量级,但是某高级语言还是比 PHP 快两三倍。 然后又加到 10 条 SQL 查询,他们几乎没区别了。
我是 docker 新手。好像 docker 的最佳实践就是每次重新 build
新手路过。对于我来说,用 RoR 的一大关键原因在于 ActiveRecord
#10 楼 @citysheep 好的,多谢!
#4 楼 @citysheep react_on_rails
现在可以用 CommonJS 那种方式引入了吗?以前不可以这样的。。。
楼主您好,想多问几个问题: