fendo181 / flextimecheck Goto Github PK
View Code? Open in Web Editor NEWふれっくす たいむ ちぇっかー
ふれっくす たいむ ちぇっかー
今回入力フォームにID
とPASSWORD
にバリデーションを追加するためにUser
モデルを作成した。
しかし、実際は今回フォームに入力されたID
とPASSWORD
はDBに保存してる訳ではないので、Userモデルは必用ない。
逆にある事によって、ローカルで開発する際にrails db:migrate
と不必要なコマンドを実行している為、混乱する。
https://github.com/Fendo181/FlexTimeCheck/blob/master/app/models/user.rb
User
モデルを使わずに、バリデーションチェックが出来るように実装したい。
async wait
でフロントで実装したいが、方法を知らない。3/12
毎回、確認する度にID
とPASSWORD
を入れるのがダルい(ユーザ体験を落としている)ので、LINEでBot化して毎朝とか通知がくるようにしたい。
本番環境へのデプロイに失敗した。
Autoprefixer doesn’t support Node v4.2.6. Update it.
Autoprefixeはnode v4.2.6
をサポートしてないのが原因みたい 🤔
remote: Download Yarn at https://yarnpkg.com/en/docs/install
remote: I, [2018-10-01T02:18:27.437312 #77] INFO -- : Writing /tmp/d20181001-24-1c01pdl/public/assets/application-44d2501fbc4bfe5ce5a57b2238d7e4a1522740a0d9b49684e0dfebb4e5507e81.js
remote: I, [2018-10-01T02:18:27.444964 #77] INFO -- : Writing /tmp/d20181001-24-1c01pdl/public/assets/application-44d2501fbc4bfe5ce5a57b2238d7e4a1522740a0d9b49684e0dfebb4e5507e81.js.gz
remote: rails aborted!
remote: Autoprefixer doesn’t support Node v4.2.6. Update it.
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/autoprefixer-rails-9.1.4/lib/autoprefixer-rails/processor.rb:163:in `runtime'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/autoprefixer-rails-9.1.4/lib/autoprefixer-rails/processor.rb:37:in `process'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/autoprefixer-rails-9.1.4/lib/autoprefixer-rails/sprockets.rb:20:in `run'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/autoprefixer-rails-9.1.4/lib/autoprefixer-rails/sprockets.rb:14:in `call'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:75:in `call_processor'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:57:in `block in call_processors'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `reverse_each'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `call_processors'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:134:in `load_from_unloaded'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:60:in `block in load'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:317:in `fetch_asset_from_dependency_cache'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:44:in `load'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:20:in `block in initialize'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:47:in `load'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/bundle.rb:23:in `block in call'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/utils.rb:200:in `dfs'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/bundle.rb:24:in `call'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:75:in `call_processor'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:57:in `block in call_processors'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `reverse_each'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `call_processors'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:134:in `load_from_unloaded'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:60:in `block in load'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:317:in `fetch_asset_from_dependency_cache'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:44:in `load'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:20:in `block in initialize'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:47:in `load'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:66:in `find_asset'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:73:in `find_all_linked_assets'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:142:in `block in find'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:114:in `block (2 levels) in logical_paths'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:228:in `block in stat_tree'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:212:in `block in stat_directory'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in `each'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in `stat_directory'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:227:in `stat_tree'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in `each'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in `block in logical_paths'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in `each'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in `logical_paths'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:140:in `find'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:186:in `compile'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:68:in `block (3 levels) in define'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/rake/sprocketstask.rb:147:in `with_logger'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:67:in `block (2 levels) in define'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/railties-5.1.6/lib/rails/commands/rake/rake_command.rb:21:in `block in perform'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/railties-5.1.6/lib/rails/commands/rake/rake_command.rb:18:in `perform'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/railties-5.1.6/lib/rails/command.rb:46:in `invoke'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/railties-5.1.6/lib/rails/commands.rb:16:in `<top (required)>'
remote: /tmp/d20181001-24-1c01pdl/bin/rails:9:in `require'
remote: /tmp/d20181001-24-1c01pdl/bin/rails:9:in `<top (required)>'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `load'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `call'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/spring-2.0.2/lib/spring/client/command.rb:7:in `call'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/spring-2.0.2/lib/spring/client.rb:30:in `run'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/spring-2.0.2/bin/spring:49:in `<top (required)>'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `load'
remote: /var/app/shared/vendor/bundle/ruby/2.5.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `<top (required)>'
remote: /tmp/d20181001-24-1c01pdl/bin/spring:15:in `<top (required)>'
remote: bin/rails:3:in `load'
remote: bin/rails:3:in `<main>'
remote: Tasks: TOP => assets:precompile
remote: (See full trace by running task with --trace)
remote: Build seems to be failed. Abort
デプロイ後にページを確認するとBootstap4が適用されたない状態になってしまっている。
記事を元に、プリコンパイルをしてデプロイして確認したが、上手くいかなかった。
rake assets:precompile RAILS_ENV=production
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.