https://github.com/unfocus/scripts-n-styles
Allows WordPress admin users the ability to add custom CSS and JavaScript directly to individual Post, Pages or custom post types.
https://github.com/unfocus/scripts-n-styles
codemirror css javascript lesscss wordpress-plugin
Last synced: 2 months ago
JSON representation
Allows WordPress admin users the ability to add custom CSS and JavaScript directly to individual Post, Pages or custom post types.
- Host: GitHub
- URL: https://github.com/unfocus/scripts-n-styles
- Owner: unFocus
- License: gpl-3.0
- Created: 2010-09-03T04:58:32.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T15:42:58.000Z (almost 3 years ago)
- Last Synced: 2025-04-09T19:08:57.505Z (9 months ago)
- Topics: codemirror, css, javascript, lesscss, wordpress-plugin
- Language: JavaScript
- Homepage: http://www.unFocus.com/
- Size: 7.32 MB
- Stars: 16
- Watchers: 3
- Forks: 4
- Open Issues: 42
-
Metadata Files:
- Readme: readme.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Dev Server commands
The dev server is basically the generic docker images for WordPress, but with things that got in the way ripped out, so that we can tweak wp-config.php constants if we wish. :-/ It should've been easier.
## Start
`docker-compose up` or `docker-compose up -d`
Builds and starts your services.
## Stop
docker-compose stop
Stops the services without removing them. Leaves it in the current state to continue working later.
## Backup
`docker exec sns-db sh -c 'exec mysqldump --all-databases -uroot -p"$MYSQL_ROOT_PASSWORD"' > ./dbinit/data.sql`
Calls into the `sns-db` container and makes a sql dump into the dbinit folder (for a fresh pre-population on next up).
You can make a new backup and use it as `mkdir -p foo && docker exec sns-db sh -c 'exec mysqldump --all-databases -uroot -p"$MYSQL_ROOT_PASSWORD"' > ./foo/data.sql && USEDB=foo`
(Change the .env file variable to make it persistently use it.)
## Clean up
`docker-compose down`
Removes most things, but not the data volume (countinue from that data next time).
`docker-compose down -v --remove-orphans`
Removes all (well, most of at least) the things, including the database. (The generic source images remain.) Use this to reset the database to the 'dbinit' backup.
## Change PHP versions
`export PHPV=7.1 && docker-compose up --build`
Choices are `5.6`, `7.0`, `7.1`
### Bash in the container
`docker-compose run wordpress /bin/bash`
Use `alias wp='docker-compose exec --user www-data wordpress wp --url=localhost'` to set up a temporary shortcut for using wp-cli in the container.