Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Shared paths can not take effect #469

Closed
user-tony opened this issue Oct 27, 2016 · 1 comment
Closed

Shared paths can not take effect #469

user-tony opened this issue Oct 27, 2016 · 1 comment

Comments

@user-tony
Copy link

  • I upgraded the mina version from 0.3.8 to 1.0.2 with new problems

On the shared path soft chain does not take effect, only the implementation of these;

----> Symlinking shared paths
       $ mkdir -p ./vendor
       $ rm -rf "./vendor/bundle"
       $ ln -s "/home/deployer/qianfandu_mysql/shared/vendor/bundle" "./vendor/bundle"
       $ mkdir -p .
       $ rm -rf "./log"
       $ ln -s "/home/deployer/qianfandu_mysql/shared/log" "./log"
       $ mkdir -p ./tmp
       $ rm -rf "./tmp/cache"
       $ ln -s "/home/deployer/qianfandu_mysql/shared/tmp/cache" "./tmp/cache"
       $ mkdir -p ./public
       $ rm -rf "./public/assets"
       $ ln -s "/home/deployer/qianfandu_mysql/shared/public/assets" "./public/assets"

My configuration"

set :shared_paths, [ 'log', "tmp", 'public/image', 'public/uploads', 'vendor/bundle', 'public/news', 'public/static', "config/secrets.yml", "config/influxdb.yml", "config/sms.yml", "config/oauth.yml", "config/secrets.yml", "config/kafka.yml", "config/payment.yml", "config/memcached.yml", "config/sidekiq.yml", "config/redis.yml", "config/application.yml", "config/settings/application.yml", "config/database.yml", 'public/uploads', 'public/assets', 'config/newrelicyml', 'config/host.yml']
task :deploy => :environment do
  deploy do
    # queue %[ /bin/bash --login ]
    invoke :'git:clone'
    invoke :'deploy:link_shared_paths'
    invoke :'bundle:install'
    invoke :'rails:db_migrate'
    invoke :'rails:assets_precompile'
    invoke :'deploy:cleanup'
    # invoke :restart
  end
end
@user-tony
Copy link
Author

user-tony commented Oct 28, 2016

Read the source code I know it is shared_paths changed the name shared_files;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant