Exporting the entire website, except users and content? As the title says. I need to export a whole project I've been working on to a production website in a different location. I need to export the modules, views, blocks, everything BUT the content and the users. I don't want the content as I made dummy content, and the user is a dummy user as well.

I was thinking on making a distro, but then I'd be missing on the structure. I would export the structure, but I need the modules as well. What's the solution for this sort of issues? My other solution is to build everything on production again, which is going to be draining.

I would also use a Dev -> Stage -> Prod workflow, but this will be a one time thing.
I would suggest to put your code in a version control like Git. There are many free services you can use like Github and Bitbucket. With Git you can easily ship your code from one server to another.


  I need to export the modules, views, blocks, everything BUT the
  content and the users. I don't want the content as I made dummy
  content, and the user is a dummy user as well.


You can use Features to export your views, blocks, content types, permission and roles, configuration, and even settings stored in variable table (Strongarm).

With everything in Features you can then run a normal installation in production then enable the features one by one. Here are some execellent tuts about using Feature.


http://mustardseedmedia.com/podcast/episode43
http://sf2010.drupal.org/conference/sessions/managing-and-deploying-configuration-exportables-and-features-module.html
http://www.drupalatlanta.com/event/drupal/april-13-2010


Related modules:


Migrate - Documentation



  My other solution is to build everything on production again, which is
  going to be draining.


One of the great things in Drupal is making the development easier and simple. With Features module, or hook like hook_update_N you will never do the same task on every environment you have. Development must only be done in local machine.


  I would also use a Dev -> Stage -> Prod workflow, but this will be a
  one time thing.


That is what Pantheon and Acquia are doing. You can build your own infra but that's another story.