A couple years ago I backed up my plone site by making a copy of the zope directory cantaining other directories such as var, Products, etc, Extension, bin, log...
I think the Plone version was 2.1.3 but I am not certain. I would like to know how I can restore my plone site from this backup. I can't find any documentation on restoring from this. Any help is greatly appreciated.
Thanks,
Francis
If it is really Plone 2.1.x, you can use a buildout like this one:
http://dist.aclark.net/build/plone/2.1.x/buildout.cfg
The procedure could like something like this (assuming you have Python 2.4 installed):
$ easy_install-2.4 zc.buildout
$ mkdir plone
$ mkdir plone/products
$ cd plone
$ buildout init
$ curl http://dist.aclark.net/build/plone/2.1.x/extends.cfg > buildout.cfg
$ bin/buildout
Now copy your old Data.fs to var/filestorage, and:
$ bin/instance fg
You may also need to copy over the contents of the Products directory (to plone/products) and configure them via buildout, by editing your buildout.cfg file to look like this:
[buildout]
extends = http://dist.aclark.net/build/plone/2.1.x/buildout.cfg
[instance]
products += products
Then run bin/buildout again.
Or, check for an installer here: http://dist.plone.org/archive/ and repeat the same process of copying in the Data.fs and add-on products.
Related
Background
I suddenly started getting a Meteor error:
~/.meteor/packages/meteor-tool/.1.4.0-1.1b1o7uq++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/bin/darwin-x64-v8-4.5/fibers.node is missing. Try reinstalling node-fibers?`
After extensive searching, I came to the conclusion that there isn't a known, straight-forward solution to this problem.
Possible Solution
I created a new Meteor project and that works. This is because it is at the latest version of Meteor, and fibers.node is properly installed in the 1.6 (latest version) directory.
The best solution looks to be removing my live project directory and recreating it with the same name (at Meteor's latest version) and then retrieving all the packages, settings and files (HTML, JS, CSS)
Question
What is the best way to do this so that:
I preserve all the packages that I have installed (there are many)
I preserve all the custom settings that have changed from default
I am able to bring all my files (I am assuming this will be simple copy of *.html, *.css and *.js from the original project)
I was able to resolve the error:
~/.meteor/packages/meteor-tool/.1.4.0-1.1b1o7uq++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/bin/darwin-x64-v8-4.5/fibers.node is missing. Try reinstalling node-fibers?
so did not need to go down the reinstalling project path.
I followed the steps in the accepted answer on this thread:
How can I completely uninstall and then reinstall Meteor.js?
Specifically:
mv .meteor .meteor.bak
sudo rm /usr/local/bin/meteor
sudo chown -R $(whoami) ~/.npm/
curl https://install.meteor.com/ | sh
meteor --version -> This will pull the required package for the version your project is at.
I have followed the instructions given in the readmes of both bootstrap3-less and meteor-bootstrap-3 meteorite packages, but it seems there are steps missing.
Could someone explain, to an inexperienced developer, exactly (step-by-step) how to 'upgrade' from the Meteor package bootstrap to Bootstrap 3 (preferably with LESS but not essential)?
Some specific queries:
Should I uninstall the standard bootstrap package first?
Where does one reference the new .less or css files (or is that done as part of the mrt package)?
Any other best practises
Thanks.
It is almost just like you actually said. Assuming your are on linux/mac, make sure you are at project root directory and then
$ mrt remove bootstrap
$ mrt add less
$ mrt add bootstrap3-less
$ mkdir -p client/styles
$ touch client/styles/my-styles.less
$ sed -i '$ a\#import "/packages/bootstrap3-less/bootstrap.import.less";' client/styles/my-styles.less
$ cd public && ln -s ../packages/bootstrap3-less/lib/fonts ./
That's it. For further customization and advanced usage, take a look at the official readme at https://github.com/simison/bootstrap3-less
Also, search atmosphere for keyword bootstrap and you'll find lots of packages that you can include in your project.
Also, packages get updated from time to time.
Therefore, once in while, make sure you run in your project root directory:
$ mrt update
Or if you are cloning your project from git to a new workspace, you need to install third party packages first:
$ mrt install
I have spent lots of time to search good tutorial or documentation for creation omega 4.x sub theme, But did't found. Like How to create a layout templates using with node types, taxonomy, user pages. Any help appreciable
If you are a windows user, you will first need to set up a virtual box with linux. While linux is the preferred choice to theme with Omega 4, you can also use mac but will need homebrew, etc.
Windows user:
Virtualbox https://www.virtualbox.org/wiki/Downloads
Drupalpro https://drupal.org/project/drupalpro
Drupalpro is a prebuilt linux environment for drupal. Follow the directions for install then complete the drupalpro update that is documented in the middle of the page. Make sure and update drush as per the update directions as Omega 4 needs more recent version. Last, update ubuntu with sudo apt-get update (don't use the package manager)
The directions below have been tested with Drupalpro (source for rvm install)
Install https://rvm.io/ Always check for the most recent/stable version!
$ \curl -L https://get.rvm.io | bash -s stable
$ source /home/drupalpro/.rvm/scripts/rvm
$ rvm requirements
Next build and install the latest version of Ruby (this might take awhile). As of Aug 2013, this is the latest build. Please change as needed.
$ rvm install 1.9.3
$ rvm use 1.9.3
$ rvm rubygems latest
Verify rvm install:
$ rvm -h
$ rvm list
$ ruby -v
You should get a message similar to: ruby 1.9.3p448 (2013-06-27 revision 41675) [i686-linux]
Now you are set up and ready to install an Omega4 subtheme. Cd to the root of your drupal site.
drush dl omega --select
Choose the appropriate Omega4 version. This will automatically download and place Omega 4.x in sites/all/themes/omega. Omega4 comes with it's own drush commands which is why it is important to have a recent version of drush. Clear drush cache then view the new omega drush commands.
drush cc drush
drush help --filter=omega
Create your subtheme
drush omega-wizard
Follow the set-up directions.
Please enter the name of the new sub-theme [Omega Subtheme]: Yoursubthemename
Please enter a machine-readable name for your new theme [yoursubthememachinename]
Please choose a base theme for your new theme
2 : Omega - A powerful HTML5 base theme framework utilizing tools like
Sass, Compass, Grunt, Bower, Ruby Version Manager, Bundler and more.
Please choose a starterkit for your new theme
1 : Default: Comes with a well organized Sass setup with heavy use of
partials. (Provided by Omega)
Please choose a destination. This is where your sub-theme will be placed
Please choose a destination type.
1 : Site (e.g. 'all' or 'example.com')
Please choose a site.
1 : all
Do you want to keep the starterkit's readme files? (y/n):
Do you want to enable your new theme? (y/n):
Do you want to make your new theme the default theme? (y/n):
If everything went as it should you will see the following message:
You have successfully created the theme Yourthemename (yourthememachinename) in sites/all/themes. [success]
After finished, inside your subtheme run:
bundle install
trouble shooting If you receive an error at bundle install or at bundle exec guard, you may need to change your terminal preferences. terminal > profile preferences > title and command > check-mark "run command as login shell" image. Close terminal, cd back to the root of your site and run bundle install.
cd into root of sub-theme:
bundle exec guard
You have now created your Omega Subtheme. Documentation for creating custom layouts here
leveluptuts are making great tuts right now for omega 4.x
leveluptuts.com
here is the playlist at Youtube : http://www.youtube.com/playlist?list=PLLnpHn493BHH5nnK2dKE_42l1oXA6Tq6H with something like a new video per week !
I am new to Plone and I am having trouble understanding how to install addons. I have read the documentation provided on their site, but I am still a bit confused.
The addon that I am trying to install is http://plone.org/products/uwosh.timeslot.
In the documentation, I see them using a something like cmd.exe, but I am not really sure what it is. Is it the python.exe located in the python folder?
Also, I am not clear if the addon that I wish to install is in an "egg" form.
Could someone please provide me with a detailed process for installation?
Thank you.
http://plone.org/documentation/kb/installing-add-ons-quick-how-to
Find, then edit your buildout.cfg file per instructions above to add the uwosh.timeslot egg.
Re-run bin/buildout (or bin\buildout on windows) from the main plone directory on the command-line (do not run from the bin directory as your current working directory).
Answering your other questions:
Yes, packages listed on PyPI.python.org are "eggs" in the sense that you install them as eggs in buildout, not classic "Products".
cmd.exe is MS Windows command-line, assuming you are using Windows, not Unix.
This is only useful if you know where your Plone installation is located on disk -- you should.
I have had problems getting a paster generated theme product to work in my production Plone 4.0 server, so I thought I would try again now that 4.1 is out. I'm now having a different problem: the theme just doesn't show up in the Add-ons list. Here's what I did:
Installed Plone 4.1 for Windows from Enfold
Downloaded ez_setup.py, and ran it with Plone's embedded python
Ran the installed easy_install to get the latest ZopeSkel installed into the embedded Python.
mkdir src ; cd src ; ..\python\Scripts\paster create -t plone3_theme plonetheme.lt
Answered the questions so that I'd get a theme based on the plone4 Sunburst theme
Otherwise I don't touch anything in that generated code.
cd plonetheme.lt ; ....\python\python.exe setup.py develop [not sure if I need to do this]
Edit the buildout.cfg to add plonetheme.lt to the eggs list, and added:
develop = src/plonetheme.lt
Run buildout. It mentions that it can find the plonetheme.lt package.
Start Zeo and Plone servers
The plonetheme.lt does not appear in the list of Add-ons
What can I have missed? I've poured over the bits of documentation on plone.org and I have Martin Aspeli's books. Many thanks. I've also tried adding the packaging to the zcml slugs, to no avail.
Luke
"cd plonetheme.lt ; ....\python\python.exe setup.py develop [not sure if I need to do this]"
no this is useless
"Edit the buildout.cfg to add plonetheme.lt to the eggs list, and added: develop = src/plonetheme.lt"
you need to add it to the zcml list too.
More info:
Take a look at the step 2 of this guide:
http://plone.org/documentation/kb/add-ons/installing
You could try the another solution using buildout.eggtractor
Or better if you paste your buildout somewhere...