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

Cant create theme without sudo #771

Closed
DarkHostDH opened this issue Feb 2, 2018 · 3 comments
Closed

Cant create theme without sudo #771

DarkHostDH opened this issue Feb 2, 2018 · 3 comments

Comments

@DarkHostDH
Copy link

I tried to create new theme

$ rails g camaleon_cms:theme nwtheme
Running via Spring preloader in process 14726
/usr/lib/ruby/2.3.0/fileutils.rb:1366:in `mkdir': Permission denied @ dir_s_mkdir - /var/lib/gems/2.3.0/gems/camaleon_cms-2.4.5.3/lib/generators/camaleon_cms/theme_template/app_nwtheme (Errno::EACCES)

Should I have sudo permissions for this?

@owen2345
Copy link
Owner

owen2345 commented Feb 7, 2018

You need permission to write in your current project because this command will create another folder + theme files

@truthSeekr
Copy link

truthSeekr commented Oct 17, 2018

I have same issue,
i gave chmod -R g+rwx Project
permission denied @ dir_s_mkdir - /home/radoslaw/.rvm/gems/ruby-2.5.0/gems/camaleon_cms-2.4.5.8/lib/generators/camaleon_cms/theme_template/app_my_theme (Errno::EACCES)

OS: Ubuntu 14.04 LTS
gemfile:

source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '2.5.0'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.2.0'
# Use sqlite3 as the database for Active Record
# gem 'sqlite3'
gem 'pg'
# Use Puma as the app server
gem 'puma', '~> 3.11'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'mini_racer', platforms: :ruby

# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 4.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use ActiveStorage variant
# gem 'mini_magick', '~> 4.8'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

# Reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', '>= 1.1.0', require: false

group :development, :test do
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
end

group :development do
  # Access an interactive console on exception pages or by calling 'console' anywhere in the code.
  gem 'web-console', '>= 3.3.0'
  gem 'listen', '>= 3.0.5', '< 3.2'
  # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
  gem 'spring'
  gem 'spring-watcher-listen', '~> 2.0.0'
end

group :test do
  # Adds support for Capybara system testing and selenium driver
  gem 'capybara', '>= 2.15', '< 4.0'
  gem 'selenium-webdriver'
  # Easy installation and use of chromedriver to run system tests with Chrome
  gem 'chromedriver-helper'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]


gem "camaleon_cms",  '>= 2.4.5'
# gem "camaleon_cms", github: 'owen2345/camaleon-cms' # current development version
gem 'draper', '~> 3' # only for Rails 5
# verify (gem 'sass-rails', '~> 5.0') only for Rails 5

#################### Camaleon CMS include all gems for plugins and themes #################### 
require './lib/plugin_routes' 
instance_eval(PluginRoutes.draw_gems)

@owen2345
Copy link
Owner

Hallo!
Added the fix, please try using github version until delivery the new version.
Cheers!

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

4 participants