Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Mina deploy failed with Rails and Vue? #659

Closed
honglix opened this issue Feb 13, 2020 · 2 comments
Closed

Mina deploy failed with Rails and Vue? #659

honglix opened this issue Feb 13, 2020 · 2 comments

Comments

@honglix
Copy link

honglix commented Feb 13, 2020

Screen Shot 2020-02-13 at 5 49 45 PM

How do I configure my deploy.rb?

task :deploy do
  deploy do
    comment "Deploying #{fetch(:application_name)} to #{fetch(:domain)}:#{fetch(:deploy_to)}"
    command %{ssh-agent}
    command %{rvm use 2.4}
    # command %{gem install bundler}
    invoke :'git:clone'
    invoke :'deploy:link_shared_paths'
    # invoke :'rvm:load_env_vars'
    invoke :'bundle:install'
    invoke :'rails:db_migrate'
    # command %{bundle exec rails db:migrate RAILS_ENV=production}
    # command %{#{fetch(:rails)} db:seed}
    command %{#{fetch(:rails)} webpacker:install:vue}
    invoke :'rails:assets_precompile'
    invoke :'deploy:cleanup'
@von-christian
Copy link

@honglix You can add this to your deploy.rb file

 command 'yarn' # Install package.json dependencies
 command "NODE_ENV=#{fetch(:rails_env)} RAILS_ENV=#{fetch(:rails_env)} bundle exec rails webpacker:compile" # Run this here so we aren't committing compiled assests to git

@honglix
Copy link
Author

honglix commented Nov 1, 2020

ok, thanks

@honglix honglix closed this as completed Nov 1, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants