Giter VIP home page Giter VIP logo

gitpod-wordpress's Introduction

Gitpod for WordPress

Gitpod is a ready-to-code dev environment with a single click. It will allows you to develop plugin or theme directly from your browser.

Open in Gitpod

Features

Install

Just copy the .gitpod.yml and .gitpod.dockerfile to your project root directory and push to your remote repository.

  • If your project is a theme, change the wp-setup-plugin to wp-setup-theme in your .gitpod.yml.
  • By default, the webserver will use PHP v7.3. If you need a different version, change it on ENV PHP_VERSION in your .gitpod.dockerfile (line 4).

Also, the wp-setup-plugin (or wp-setup-theme) will search for a .init.sh file in your project root directory and execute it (if exists). Then, you can use the wp-cli to install plugins, install themes, and more. Or create your own tasks.

# .init.sh
wp plugin install woocommerce --activate # install WooCommerce
wp plugin activate ${REPO_NAME} # activate your plugin

Project dependencies (in composer.json or package.json) are automatically installed.

Usage

Now you access https://gitpod.io/#<url-of-your-github-project>.

Example: https://gitpod.io/#https://github.com/luizbills/wp-tweaks/

Your admin credentials:

username: admin
password: password

Utilities

  • You can use the following commands in terminal:

    • browse-url <endpoint>: open an endpoint of your WordPress installation.
    • browse-home: alias for browse-url / (your Homepage)
    • browse-wpadmin: alias for browse-url /wp-admin (WordPress Admin Painel)
    • browse-dbadmin: alias for browse-url /database (to manage your database with Adminer)
    • browse-phpinfo: alias for browse-url /phpinfo (a page with <?php phpinfo(); ?>)
    • browse-emails: open the MailHog client
  • You can setup your PHP on .htaccess file (eg: php_value max_execution_time 600)

Contributing

To contribute, follow these steps:

  1. Fork this repository.
  2. Create a branch: git checkout -b <branch_name>.
  3. Make your changes and commit them: git commit -m '<commit_message>'
  4. Push to your fork: git push origin <branch_name>
  5. Create the Pull Request.

Alternatively see the GitHub documentation on creating a pull request.

Just found a bug? Report it on GitHub Issues.

LICENSE

MIT © 2019 Luiz Paulo "Bills"


Made with ❤ in Brazil

gitpod-wordpress's People

Contributors

luizbills avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.